public IActor GetBrokerageService(IBrokerageServiceConfiguration configuration) { var router = new BrokerageService(configuration, LoggerForTests <BrokerageService> .Default(), _eventCache, _serializer); _actors.Add(router); return(router); }
public BrokerageService(IBrokerageServiceConfiguration configuration, IEventCache cache, ISerializer serializer) { _cache = cache; _serializer = serializer; _configuration = configuration; _cancel = new CancellationTokenSource(); }
public BrokerageService(IBrokerageServiceConfiguration configuration, ILogger <BrokerageService> logger, IEventCache cache, ISerializer serializer) : base(logger) { _cache = cache; _serializer = serializer; _configuration = configuration; Errors = new ObservableCollection <ActorMonitoringError>(); _cancel = new CancellationTokenSource(); }