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; }
Program() { _clock = new UtcClock(); _dnsProvider = new DnsProvider(); _hashingService = new Md5HashingService(); _msgSerializer = new MessageSerializer(); _nodeSocketFactory = new InProcNodeSocketFactory(); _correlationFactory = new CorrelationIdFactory(); _actionTimerFactory = new ActionTimerFactory(); _expiryCalculator = new ExpiryTimeCalculator(_clock); _random = new RandomNumberGenerator(_correlationFactory); _marshallerFactory = new NodeMarshallerFactory(_msgSerializer); _communicationManagerFactory = new CommunicationManagerFactory(); }