Skip to content
DocsTry Aspire
DocsTry

DaprComponentResource Constructors

ClassConstructors1 member
Represents a Dapr component resource.
Initializes a new instance of DaprComponentResource.
public sealed class DaprComponentResource
{
public DaprComponentResource(
string name,
string type)
{
// ...
}
}
namestringThe resource name.
typestringThe Dapr component type. This may be a generic "state" or "pubsub" if Aspire should choose an appropriate type when running or deploying.