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