共用方式為


StatefulServiceBase(StatefulServiceContext, IStateProviderReplica) Constructor

Definition

Initializes a new instance of the StatefulServiceBase class.

protected StatefulServiceBase (System.Fabric.StatefulServiceContext serviceContext, Microsoft.ServiceFabric.Data.IStateProviderReplica stateProviderReplica);
new Microsoft.ServiceFabric.Services.Runtime.StatefulServiceBase : System.Fabric.StatefulServiceContext * Microsoft.ServiceFabric.Data.IStateProviderReplica -> Microsoft.ServiceFabric.Services.Runtime.StatefulServiceBase
Protected Sub New (serviceContext As StatefulServiceContext, stateProviderReplica As IStateProviderReplica)

Parameters

serviceContext
StatefulServiceContext

A StatefulServiceContext that this service is created under. The context provides information like replica ID, partition ID, and service name.

stateProviderReplica
IStateProviderReplica

A IStateProviderReplica2 represents a reliable state provider replica.

Applies to