FabricActorService 构造函数
定义
重载
FabricActorService(StatefulServiceContext context, ActorTypeInformation actorTypeInfo)
Initializes a new instance of the ActorService class.
public FabricActorService(StatefulServiceContext context, ActorTypeInformation actorTypeInfo)
参数
- context
- StatefulServiceContext
Service context the actor service is operating under.
- actorTypeInfo
- ActorTypeInformation
Type information of the actor.
FabricActorService(StatefulServiceContext context, ActorTypeInformation actorTypeInfo, BiFunction<FabricActorService, ActorId, ActorBase> actorFactory)
Initializes a new instance of the ActorService class.
public FabricActorService(StatefulServiceContext context, ActorTypeInformation actorTypeInfo, BiFunction<FabricActorService, ActorId, ActorBase> actorFactory)
参数
- context
- StatefulServiceContext
Service context the actor service is operating under.
- actorTypeInfo
- ActorTypeInformation
Type information of the actor.
- actorFactory
- BiFunction<FabricActorService, ActorId, ActorBase>
A factory method to create actor objects.
FabricActorService(StatefulServiceContext context, ActorTypeInformation actorTypeInfo, BiFunction<FabricActorService, ActorId, ActorBase> actorFactory, BiFunction<ActorBase, ActorStateProvider, ActorStateManager> stateManagerFactory, ActorStateProvider stateProvider, ActorServiceSettings settings)
Initializes a new instance of the ActorService class.
public FabricActorService(StatefulServiceContext context, ActorTypeInformation actorTypeInfo, BiFunction<FabricActorService, ActorId, ActorBase> actorFactory, BiFunction<ActorBase, ActorStateProvider, ActorStateManager> stateManagerFactory, ActorStateProvider stateProvider, ActorServiceSettings settings)
参数
- context
- StatefulServiceContext
Service context the actor service is operating under.
- actorTypeInfo
- ActorTypeInformation
Type information of the actor.
- actorFactory
- BiFunction<FabricActorService, ActorId, ActorBase>
A factory method to create actor objects.
- stateManagerFactory
- BiFunction<ActorBase, ActorStateProvider, ActorStateManager>
A factory method to create ActorStateManager.
- stateProvider
- ActorStateProvider
State provider to store the state for actor objects.
- settings
- ActorServiceSettings
Settings to configures behavior of Actor Service.