共用方式為


StatefulServiceBase.Context Property

Definition

Gets the service context that this stateful service is operating under. It provides information like replica ID, partition ID, service name etc.

public System.Fabric.StatefulServiceContext Context { get; }
member this.Context : System.Fabric.StatefulServiceContext
Public ReadOnly Property Context As StatefulServiceContext

Property Value

A StatefulServiceContext describes the service context, which it provides information like replica ID, partition ID, and service name.

Applies to