StatelessServiceContext Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the StatelessServiceContext class.
public StatelessServiceContext (System.Fabric.NodeContext nodeContext, System.Fabric.ICodePackageActivationContext codePackageActivationContext, string serviceTypeName, Uri serviceName, byte[] initializationData, Guid partitionId, long instanceId);
new System.Fabric.StatelessServiceContext : System.Fabric.NodeContext * System.Fabric.ICodePackageActivationContext * string * Uri * byte[] * Guid * int64 -> System.Fabric.StatelessServiceContext
Public Sub New (nodeContext As NodeContext, codePackageActivationContext As ICodePackageActivationContext, serviceTypeName As String, serviceName As Uri, initializationData As Byte(), partitionId As Guid, instanceId 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.
- instanceId
- Int64
The instance ID.