public OrdersPublisher( [NotNull] IClientAccountClient clientAccountClient, [NotNull] IOrdersConverter ordersConverter, [NotNull] ISessionCache sessionCache, [NotNull] IWampHostedRealm realm) { _clientAccountClient = clientAccountClient ?? throw new ArgumentNullException(nameof(clientAccountClient)); _ordersConverter = ordersConverter ?? throw new ArgumentNullException(nameof(ordersConverter)); _sessionCache = sessionCache ?? throw new ArgumentNullException(nameof(sessionCache)); _subject = realm?.Services.GetSubject(Topic) ?? throw new ArgumentNullException(nameof(realm)); }
public OrdersSubscriber( ITradeLogPublisher publisher, IOrdersConverter tradesConverter, ILog log, string connectionString, string exchangeName) { _publisher = publisher; _tradesConverter = tradesConverter; _log = log; _connectionString = connectionString; _exchangeName = exchangeName; }