FabricRuntime.registerStatefulServiceFactory(String serviceTypeName, StatefulServiceFactory factory) 方法

定义

Registers the specified StatefulServiceFactory for the specified service type.

public void registerStatefulServiceFactory(String serviceTypeName, StatefulServiceFactory factory)

参数

serviceTypeName
String

The type name of the service type (as a string). This should match the type of the service group type as specified in the manifests and/or the CreateService command.

factory
StatefulServiceFactory

The StatefulServiceFactory which can create the specified service type.

适用于