IStatelessServiceFactory.CreateInstance Method
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.
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.
Returns
Returns IStatelessServiceInstance.