共用方式為


DaprComponentResource(String, String) Constructor

Definition

Initializes a new instance of DaprComponentResource.

public DaprComponentResource (string name, string type);
new Aspire.Hosting.Dapr.DaprComponentResource : string * string -> Aspire.Hosting.Dapr.DaprComponentResource
Public Sub New (name As String, type As String)

Parameters

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.

Applies to