AzureEventHubsExtensions.WithDataBindMount Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The builder for the AzureEventHubsEmulatorResource.
- 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.