Partilhar via


AzureRedisExtensions.PublishAsAzureRedis Method

Definition

Overloads

PublishAsAzureRedis(IResourceBuilder<RedisResource>)
Obsolete.

Configures the resource to be published as Azure Cache for Redis when deployed via Azure Developer CLI.

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

Configures the resource to be published as Azure Cache for Redis when deployed via Azure Developer CLI.

PublishAsAzureRedis(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 the resource to be published as Azure Cache for Redis when deployed via Azure Developer CLI.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> PublishAsAzureRedis (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> PublishAsAzureRedis (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> builder);
static member PublishAsAzureRedis : 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 PublishAsAzureRedis : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource>
<Extension()>
Public Function PublishAsAzureRedis (builder As IResourceBuilder(Of RedisResource)) As IResourceBuilder(Of RedisResource)

Parameters

Returns

A reference to the IResourceBuilder<T> builder.

Attributes

Applies to

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

Source:
AzureRedisExtensions.cs

Configures the resource to be published as Azure Cache for Redis when deployed via Azure Developer CLI.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> PublishAsAzureRedis (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 PublishAsAzureRedis : 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 PublishAsAzureRedis (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