Share via


AzureRedisExtensions.AsAzureRedis Method

Definition

Overloads

AsAzureRedis(IResourceBuilder<RedisResource>)

Configures resource to use Azure for local development and when doing a deployment via the Azure Developer CLI.

AsAzureRedis(IResourceBuilder<RedisResource>, Action<IResourceBuilder<AzureRedisResource>,ResourceModuleConstruct,RedisCache>)

Configures resource to use Azure for local development and when doing a deployment via the Azure Developer CLI.

AsAzureRedis(IResourceBuilder<RedisResource>)

Source:
AzureRedisExtensions.cs

Configures resource to use Azure for local development and when doing a deployment via the Azure Developer CLI.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> AsAzureRedis (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> builder);
static member AsAzureRedis : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource>
<Extension()>
Public Function AsAzureRedis (builder As IResourceBuilder(Of RedisResource)) As IResourceBuilder(Of RedisResource)

Parameters

Returns

A reference to the IResourceBuilder<T> builder.

Applies to

AsAzureRedis(IResourceBuilder<RedisResource>, Action<IResourceBuilder<AzureRedisResource>,ResourceModuleConstruct,RedisCache>)

Source:
AzureRedisExtensions.cs

Configures resource to use Azure for local development and when doing a deployment via the Azure Developer CLI.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> AsAzureRedis (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> builder, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureRedisResource>,Aspire.Hosting.ResourceModuleConstruct,Azure.Provisioning.Redis.RedisCache>? configureResource);
static member AsAzureRedis : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureRedisResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.Redis.RedisCache> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource>
<Extension()>
Public Function AsAzureRedis (builder As IResourceBuilder(Of RedisResource), configureResource As Action(Of IResourceBuilder(Of AzureRedisResource), ResourceModuleConstruct, RedisCache)) As IResourceBuilder(Of RedisResource)

Parameters

configureResource
Action<IResourceBuilder<AzureRedisResource>,ResourceModuleConstruct,Azure.Provisioning.Redis.RedisCache>

Callback to configure the underlying Azure.Provisioning.Redis.RedisCache resource.

Returns

A reference to the IResourceBuilder<T> builder.

Applies to