Aracılığıyla paylaş


StatefulService Constructors

Definition

Overloads

StatefulService(StatefulServiceContext)

Initializes a new instance of the StatefulService class with default reliable state manager (ReliableStateManager).

StatefulService(StatefulServiceContext, IReliableStateManagerReplica)

Initializes a new instance of the StatefulService class with non-default reliable state manager replica.

StatefulService(StatefulServiceContext)

Initializes a new instance of the StatefulService class with default reliable state manager (ReliableStateManager).

protected StatefulService (System.Fabric.StatefulServiceContext serviceContext);
new Microsoft.ServiceFabric.Services.Runtime.StatefulService : System.Fabric.StatefulServiceContext -> Microsoft.ServiceFabric.Services.Runtime.StatefulService
Protected Sub New (serviceContext As StatefulServiceContext)

Parameters

serviceContext
StatefulServiceContext

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

Applies to

StatefulService(StatefulServiceContext, IReliableStateManagerReplica)

Initializes a new instance of the StatefulService class with non-default reliable state manager replica.

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

Parameters

serviceContext
StatefulServiceContext

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

reliableStateManagerReplica
IReliableStateManagerReplica

A IReliableStateManagerReplica represents a reliable state provider replica.

Applies to