Partilhar via


AzureStorageExtensions.RunAsEmulator Method

Definition

Configures an Azure Storage resource to be emulated using Azurite. This resource requires an AzureStorageResource to be added to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource> RunAsEmulator (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource> builder, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageEmulatorResource>>? configureContainer = default);
static member RunAsEmulator : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource> * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageEmulatorResource>> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource>
<Extension()>
Public Function RunAsEmulator (builder As IResourceBuilder(Of AzureStorageResource), Optional configureContainer As Action(Of IResourceBuilder(Of AzureStorageEmulatorResource)) = Nothing) As IResourceBuilder(Of AzureStorageResource)

Parameters

builder
IResourceBuilder<AzureStorageResource>

The Azure storage resource builder.

configureContainer
Action<IResourceBuilder<AzureStorageEmulatorResource>>

Callback that exposes underlying container used for emulation to allow for customization.

Returns

A reference to the IResourceBuilder<T>.

Remarks

This version of the package defaults to the tag of the / container image.

Applies to