Skip to content
Docs Try Aspire

GarnetResource Constructors

Class Constructors 2 members
A resource that represents a Garnet resource independent of the hosting model.
A resource that represents a Garnet resource independent of the hosting model.
public class GarnetResource
{
public GarnetResource(
string name)
{
// ...
}
}
name string The name of the resource.
Constructor(string, ParameterResource) Section titled Constructor(string, ParameterResource)
Initializes a new instance of the GarnetResource class.
public class GarnetResource
{
public GarnetResource(
string name,
ParameterResource password)
{
// ...
}
}
name string The name of the resource.
password ParameterResource A parameter that contains the Garnet server password.