public static ILocalLiveNode Instance( Stage stage, Node node, IClusterSnapshot snapshot, IRegistry registry, IOperationalOutboundStream outbound, IConfiguration configuration) { var localLiveNode = stage.ActorFor <ILocalLiveNode>( () => new LocalLiveNodeActor(node, snapshot, registry, outbound, configuration), "local-live-node"); return(localLiveNode); }
public static ILocalLiveNode Instance( Stage stage, Node node, IClusterSnapshot snapshot, IRegistry registry, IOperationalOutboundStream outbound, IConfiguration configuration) { var definition = Definition.Has <LocalLiveNodeActor>( Definition.Parameters(node, snapshot, registry, outbound, configuration), "local-live-node"); var localLiveNode = stage.ActorFor <ILocalLiveNode>(definition); return(localLiveNode); }
public LocalLiveNodeActor( Node node, IClusterSnapshot snapshot, IRegistry registry, IOperationalOutboundStream outbound, IConfiguration configuration) { _node = node; _snapshot = snapshot; _registry = registry; _outbound = outbound; _configuration = configuration; _nodeSynchronizers = new List <INodeSynchronizer>(); _checkHealth = new CheckHealth(_node.Id); _cancellable = ScheduleHealthCheck(); StartNode(); }