다음을 통해 공유


IStatefulServiceFactory.CreateReplica Method

Definition

Called by Service Fabric to create a stateful service replica for a particular service.

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

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 of type, a GUID, with which this replica is associated.

replicaId
Int64

The replica ID of type long for this replica.

Returns

Returns IStatefulServiceReplica.

Applies to