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(); }
public NodeMarshaller(IMessageSerializer serializer, IConsistentHashingService hashingService) { _serializer = serializer; _hashingService = hashingService; }
public MyAppNodeFactory(MyAppNodeConfiguration config) { _hashingService = config.HashingService; _config = config; }