Freigeben über


AzureEventHubsExtensions.WithDataBindMount Method

Definition

Adds a bind mount for the data folder to an Azure Event Hubs emulator resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource> WithDataBindMount (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource> builder, string? path = default);
static member WithDataBindMount : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource>
<Extension()>
Public Function WithDataBindMount (builder As IResourceBuilder(Of AzureEventHubsEmulatorResource), Optional path As String = Nothing) As IResourceBuilder(Of AzureEventHubsEmulatorResource)

Parameters

path
String

Relative path to the AppHost where emulator storage is persisted between runs. Defaults to the path '.eventhubs/{builder.Resource.Name}'

Returns

A builder for the AzureEventHubsEmulatorResource.

Applies to