Esempio n. 1
0
 public CommunicationManager(NodeInfo node, INodeMarshaller marshaller, ISocketCache socketCache, IPublisher publisher, Action <string> logger)
 {
     _node        = node;
     _marshaller  = marshaller;
     _socketCache = socketCache;
     _publisher   = publisher;
     _logger      = logger;
 }
            public AwaitAckHandler(IActionScheduler actionScheduler, IExpiryTimeCalculator expiryCalculator, INodeMarshaller marshaller, IOutgoingSocket actorSocket, Action <string> logger, AwaitConfiguration config)
            {
                _actionScheduler = actionScheduler;
                _disposeAction   = new DisposableAction(
                    () => { _actionScheduler.ExecuteAction += OneExecuteAction; },
                    () => { _actionScheduler.ExecuteAction -= OneExecuteAction; });

                _expiryCalculator = expiryCalculator;
                _config           = config;
                _marshaller       = marshaller;
                _actorSocket      = actorSocket;
                _logger           = logger;
            }
Esempio n. 3
0
 public ICommunicationManager Create(NodeInfo nodeInfo, INodeMarshaller marshaller, ISocketCache socketCache, IPublisher publisher, Action <string> logger)
 {
     return(new CommunicationManager(nodeInfo, marshaller, socketCache, publisher, logger));
 }
 public NodeActionScheduler(IUtcClock clock, IActionTimer timer, INodeMarshaller marshaller, IOutgoingSocket actorSocket)
     : base(clock, timer)
 {
     _marshaller  = marshaller;
     _actorSocket = actorSocket;
 }