Udostępnij za pośrednictwem


IStatelessServiceFactory.CreateInstance Method

Definition

Creates a stateless service instance for a particular service. This method is called by Service Fabric.

public System.Fabric.IStatelessServiceInstance CreateInstance (string serviceTypeName, Uri serviceName, byte[] initializationData, Guid partitionId, long instanceId);
abstract member CreateInstance : string * Uri * byte[] * Guid * int64 -> System.Fabric.IStatelessServiceInstance
Public Function CreateInstance (serviceTypeName As String, serviceName As Uri, initializationData As Byte(), partitionId As Guid, instanceId As Long) As IStatelessServiceInstance

Parameters

serviceTypeName
String

The service type that Service Fabric requests to be created.

serviceName
Uri

The fabric:/ name (Uri) of the service with which this replica is associated.

initializationData
Byte[]

A byte array that contains the initialization data which was originally passed as a part of this service’s ServiceDescription.

partitionId
Guid

The partition ID (GUID) with which this replica is associated.

instanceId
Int64

The replica ID for this replica of type Int64.

Returns

Returns IStatelessServiceInstance.

Applies to