共用方式為


AzureRedisExtensions.AsAzureRedis Method

Definition

Overloads

AsAzureRedis(IResourceBuilder<RedisResource>)
Obsolete.

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
Source:
AzureRedisExtensions.cs

Caution

This method is obsolete and will be removed in a future version. Use AddAzureRedis instead to add an Azure Cache for Redis resource.

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);
[System.Obsolete("This method is obsolete and will be removed in a future version. Use AddAzureRedis instead to add an Azure Cache for Redis resource.")]
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>
[<System.Obsolete("This method is obsolete and will be removed in a future version. Use AddAzureRedis instead to add an Azure Cache for Redis resource.")>]
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.

Attributes

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