14 references to AzureEventHubsResource
Aspire.Hosting.Azure.EventHubs (14)
AzureEventHubsEmulatorResource.cs (3)
9/// Wraps an <see cref="AzureEventHubsResource" /> in a type that exposes container extension methods. 12public class AzureEventHubsEmulatorResource(AzureEventHubsResource innerResource) : ContainerResource(innerResource.Name), IResource 16private readonly AzureEventHubsResource _innerResource = innerResource;
AzureEventHubsExtensions.cs (11)
27public static IResourceBuilder<AzureEventHubsResource> AddAzureEventHubs( 59var azureResource = (AzureEventHubsResource)infrastructure.AspireResource; 72var resource = new AzureEventHubsResource(name, configureInfrastructure); 78/// Adds an Azure Event Hubs hub resource to the application model. This resource requires an <see cref="AzureEventHubsResource"/> to be added to the application model. 85public static IResourceBuilder<AzureEventHubsResource> AddEventHub(this IResourceBuilder<AzureEventHubsResource> builder, [ResourceName] string name) 92/// Configures an Azure Event Hubs resource to be emulated. This resource requires an <see cref="AzureEventHubsResource"/> to be added to the application model. 113public static IResourceBuilder<AzureEventHubsResource> RunAsEmulator(this IResourceBuilder<AzureEventHubsResource> builder, Action<IResourceBuilder<AzureEventHubsEmulatorResource>>? configureContainer = null) 199var eventHubsEmulatorResources = builder.ApplicationBuilder.Resources.OfType<AzureEventHubsResource>().Where(x => x is { } eventHubsResource && eventHubsResource.IsEmulator);