Share via


ValkeyResource Constructors

Definition

Overloads

ValkeyResource(String)

A resource that represents a Valkey resource independent of the hosting model.

ValkeyResource(String, ParameterResource)

Initializes a new instance of the ValkeyResource class.

ValkeyResource(String)

Source:
ValkeyResource.cs
Source:
ValkeyResource.cs
Source:
ValkeyResource.cs
Source:
ValkeyResource.cs

A resource that represents a Valkey resource independent of the hosting model.

public ValkeyResource(string name);
new Aspire.Hosting.ApplicationModel.ValkeyResource : string -> Aspire.Hosting.ApplicationModel.ValkeyResource
Public Sub New (name As String)

Parameters

name
String

The name of the resource.

Applies to

ValkeyResource(String, ParameterResource)

Source:
ValkeyResource.cs

Initializes a new instance of the ValkeyResource class.

public ValkeyResource(string name, Aspire.Hosting.ApplicationModel.ParameterResource password);
new Aspire.Hosting.ApplicationModel.ValkeyResource : string * Aspire.Hosting.ApplicationModel.ParameterResource -> Aspire.Hosting.ApplicationModel.ValkeyResource
Public Sub New (name As String, password As ParameterResource)

Parameters

name
String

The name of the resource.

password
ParameterResource

A parameter that contains the Valkey server password.

Applies to