Skip to content
DocsTry Aspire
DocsTry

GarnetResource Constructors

ClassConstructors2 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)
{
// ...
}
}
namestringThe 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)
{
// ...
}
}
namestringThe name of the resource.
passwordParameterResourceA parameter that contains the Garnet server password.