Condividi tramite


StatefulServiceContext Constructor

Definition

Initializes a new instance of the StatefulServiceContext class.

public StatefulServiceContext (System.Fabric.NodeContext nodeContext, System.Fabric.ICodePackageActivationContext codePackageActivationContext, string serviceTypeName, Uri serviceName, byte[] initializationData, Guid partitionId, long replicaId);
new System.Fabric.StatefulServiceContext : System.Fabric.NodeContext * System.Fabric.ICodePackageActivationContext * string * Uri * byte[] * Guid * int64 -> System.Fabric.StatefulServiceContext
Public Sub New (nodeContext As NodeContext, codePackageActivationContext As ICodePackageActivationContext, serviceTypeName As String, serviceName As Uri, initializationData As Byte(), partitionId As Guid, replicaId As Long)

Parameters

nodeContext
NodeContext

The node context, which contains information about the node where the stateless service instance is running.

codePackageActivationContext
ICodePackageActivationContext

The code package activation context, which contains information from the service manifest and the currently activated code package, like work directory, context ID etc.

serviceTypeName
String

The service type name.

serviceName
Uri

The service name.

initializationData
Byte[]

The service initialization data, which represents custom initialization data provided by the creator of the service.

partitionId
Guid

The partition ID.

replicaId
Int64

The replica ID.

Applies to