Skip to content
Docs Try Aspire

DaprComponentResource Constructors

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