public InvincibleTrader(IUtcClock utcClock, ICentralRegistry centralRegistry, IBeacon beacon, IBackfiller backfiller) { _utcClock = utcClock; _centralRegistry = centralRegistry; _beacon = beacon; _backfiller = backfiller; }
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 OutgoingSocket(NetMQActor socket, IUtcClock clock) { _clock = clock; Socket = socket; _isDisposed = true; // Actor is not owned by the cache }
public OutgoingSocket(DealerSocket socket, IUtcClock clock) { _clock = clock; Socket = socket; }
public ActionScheduler(IUtcClock clock, IActionTimer timer) { Clock = clock; _timer = timer; }
public DealerSocketWrapper(DealerSocket socket, IUtcClock clock) { _clock = clock; Socket = socket; }
public ExpiryTimeCalculator(IUtcClock clock) { _clock = clock; }
public SocketCache(INodeSocketFactory socketFactory, IUtcClock clock) : base(key => new DealerSocketWrapper(socketFactory.CreateForwardingSocket(key), clock)) { }
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; }