Exemplo n.º 1
0
        public NodeConfiguration()
        {
            JoinSettings      = new JoinConfiguration();
            AwaitSettings     = new AwaitConfiguration();
            StabilizeSettings = new StabilizeConfiguration();

            SuccessorCount = 2;
        }
            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;
            }