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.
12
public class AzureEventHubsEmulatorResource(
AzureEventHubsResource
innerResource) : ContainerResource(innerResource.Name), IResource
16
private readonly
AzureEventHubsResource
_innerResource = innerResource;
AzureEventHubsExtensions.cs (11)
27
public static IResourceBuilder<
AzureEventHubsResource
> AddAzureEventHubs(
59
var
azureResource = (
AzureEventHubsResource
)infrastructure.AspireResource;
72
var
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.
85
public 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.
113
public static IResourceBuilder<
AzureEventHubsResource
> RunAsEmulator(this IResourceBuilder<
AzureEventHubsResource
> builder, Action<IResourceBuilder<AzureEventHubsEmulatorResource>>? configureContainer = null)
199
var eventHubsEmulatorResources = builder.ApplicationBuilder.Resources.OfType<
AzureEventHubsResource
>().Where(x => x is { } eventHubsResource && eventHubsResource.IsEmulator);