Example #1
0
 public InvincibleTrader(IUtcClock utcClock, ICentralRegistry centralRegistry, IBeacon beacon, IBackfiller backfiller)
 {
     _utcClock        = utcClock;
     _centralRegistry = centralRegistry;
     _beacon          = beacon;
     _backfiller      = backfiller;
 }
Example #2
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();
 }
Example #3
0
 public OutgoingSocket(NetMQActor socket, IUtcClock clock)
 {
     _clock      = clock;
     Socket      = socket;
     _isDisposed = true; // Actor is not owned by the cache
 }
Example #4
0
 public OutgoingSocket(DealerSocket socket, IUtcClock clock)
 {
     _clock = clock;
     Socket = socket;
 }
Example #5
0
 public ActionScheduler(IUtcClock clock, IActionTimer timer)
 {
     Clock  = clock;
     _timer = timer;
 }
Example #6
0
 public DealerSocketWrapper(DealerSocket socket, IUtcClock clock)
 {
     _clock = clock;
     Socket = socket;
 }
 public ExpiryTimeCalculator(IUtcClock clock)
 {
     _clock = clock;
 }
Example #8
0
 public SocketCache(INodeSocketFactory socketFactory, IUtcClock clock) :
     base(key => new DealerSocketWrapper(socketFactory.CreateForwardingSocket(key), clock))
 {
 }
Example #9
0
 public SocketCache(INodeSocketFactory socketFactory, IUtcClock clock) :
     base(key => new OutgoingSocket(socketFactory.CreateForwardingSocket(key), clock))
 {
     _clock = clock;
 }
 public NodeActionScheduler(IUtcClock clock, IActionTimer timer, INodeMarshaller marshaller, IOutgoingSocket actorSocket)
     : base(clock, timer)
 {
     _marshaller  = marshaller;
     _actorSocket = actorSocket;
 }