Share via


IStatefulServicePartition.CreateReplicator Method

Definition

Creates a FabricReplicator with the specified settings and returns it to the replica.

public System.Fabric.FabricReplicator CreateReplicator (System.Fabric.IStateProvider stateProvider, System.Fabric.ReplicatorSettings replicatorSettings);
abstract member CreateReplicator : System.Fabric.IStateProvider * System.Fabric.ReplicatorSettings -> System.Fabric.FabricReplicator
Public Function CreateReplicator (stateProvider As IStateProvider, replicatorSettings As ReplicatorSettings) As FabricReplicator

Parameters

stateProvider
IStateProvider

The IStateProvider with which the returned FabricReplicator should be associated. This is often the same object that implements IStatefulServiceReplica, but certain services might be factored differently.

replicatorSettings
ReplicatorSettings

The ReplicatorSettings with which the returned FabricReplicator should be configured.

Returns

Returns FabricReplicator.

Remarks

This method should be used to create a FabricReplicator to service as the IStateReplicator for a stateful service that implements IStateProvider.

Applies to