Share via


GarnetResource Constructors

Definition

Overloads

GarnetResource(String)

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

GarnetResource(String, ParameterResource)

Initializes a new instance of the GarnetResource class.

GarnetResource(String)

Source:
GarnetResource.cs
Source:
GarnetResource.cs
Source:
GarnetResource.cs
Source:
GarnetResource.cs

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

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

Parameters

name
String

The name of the resource.

Applies to

GarnetResource(String, ParameterResource)

Source:
GarnetResource.cs

Initializes a new instance of the GarnetResource class.

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

Parameters

name
String

The name of the resource.

password
ParameterResource

A parameter that contains the Garnet server password.

Applies to