Dela via


AzureRedisCacheResource.HostName Property

Definition

Gets the host name for the Redis server.

public Aspire.Hosting.ApplicationModel.ReferenceExpression HostName { get; }
member this.HostName : Aspire.Hosting.ApplicationModel.ReferenceExpression
Public ReadOnly Property HostName As ReferenceExpression

Property Value

Remarks

In container mode, resolves to the container's primary endpoint host and port. In Azure mode, resolves to the Azure Redis server's hostname.

Applies to