24 references to AzureEventHubsEmulatorResource
Aspire.Hosting.Azure.EventHubs (24)
AzureEventHubsExtensions.cs (24)
147public static IResourceBuilder<AzureEventHubsResource> RunAsEmulator(this IResourceBuilder<AzureEventHubsResource> builder, Action<IResourceBuilder<AzureEventHubsEmulatorResource>>? configureContainer = null)
159AzureEventHubsEmulatorResource.EmulatorConfigJsonPath,
222var surrogate = new AzureEventHubsEmulatorResource(builder.Resource);
239var configFileMount = emulatorResource.Annotations.OfType<ContainerMountAnnotation>().Single(v => v.Target == AzureEventHubsEmulatorResource.EmulatorConfigJsonPath);
320/// <param name="builder">The builder for the <see cref="AzureEventHubsEmulatorResource"/>.</param>
322/// <returns>A builder for the <see cref="AzureEventHubsEmulatorResource"/>.</returns>
323public static IResourceBuilder<AzureEventHubsEmulatorResource> WithDataBindMount(this IResourceBuilder<AzureEventHubsEmulatorResource> builder, string? path = null)
329/// <param name="builder">The builder for the <see cref="AzureEventHubsEmulatorResource"/>.</param>
331/// <returns>A builder for the <see cref="AzureEventHubsEmulatorResource"/>.</returns>
332public static IResourceBuilder<AzureEventHubsEmulatorResource> WithDataVolume(this IResourceBuilder<AzureEventHubsEmulatorResource> builder, string? name = null)
342public static IResourceBuilder<AzureEventHubsEmulatorResource> WithGatewayPort(this IResourceBuilder<AzureEventHubsEmulatorResource> builder, int? port)
353public static IResourceBuilder<AzureEventHubsEmulatorResource> WithHostPort(this IResourceBuilder<AzureEventHubsEmulatorResource> builder, int? port)
364/// <param name="builder">The builder for the <see cref="AzureEventHubsEmulatorResource"/>.</param>
367public static IResourceBuilder<AzureEventHubsEmulatorResource> WithConfigurationFile(this IResourceBuilder<AzureEventHubsEmulatorResource> builder, string path)
370var configFileMount = builder.Resource.Annotations.OfType<ContainerMountAnnotation>().LastOrDefault(v => v.Target == AzureEventHubsEmulatorResource.EmulatorConfigJsonPath);
376return builder.WithBindMount(path, AzureEventHubsEmulatorResource.EmulatorConfigJsonPath, isReadOnly: true);
382/// <param name="builder">The builder for the <see cref="AzureEventHubsEmulatorResource"/>.</param>
385public static IResourceBuilder<AzureEventHubsEmulatorResource> ConfigureEmulator(this IResourceBuilder<AzureEventHubsEmulatorResource> builder, Action<JsonNode> configJson)