Share via


ServiceContext Constructor

Definition

Initializes a new instance of the ServiceContext class.

protected ServiceContext (System.Fabric.NodeContext nodeContext, System.Fabric.ICodePackageActivationContext codePackageActivationContext, string serviceTypeName, Uri serviceName, byte[] initializationData, Guid partitionId, long replicaOrInstanceId);
new System.Fabric.ServiceContext : System.Fabric.NodeContext * System.Fabric.ICodePackageActivationContext * string * Uri * byte[] * Guid * int64 -> System.Fabric.ServiceContext
Protected Sub New (nodeContext As NodeContext, codePackageActivationContext As ICodePackageActivationContext, serviceTypeName As String, serviceName As Uri, initializationData As Byte(), partitionId As Guid, replicaOrInstanceId 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.

replicaOrInstanceId
Int64

The replica or instance ID.

Applies to