Share via


AzureEventHubsExtensions.WithDataVolume Method

Definition

Adds a named volume for the data folder to an Azure Event Hubs emulator resource.

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

Parameters

name
String

The name of the volume. Defaults to an auto-generated name based on the application and resource names.

Returns

A builder for the AzureEventHubsEmulatorResource.

Applies to