コード例 #1
0
        public IActor GetBrokerageService(IBrokerageServiceConfiguration configuration)
        {
            var router = new BrokerageService(configuration, LoggerForTests <BrokerageService> .Default(), _eventCache, _serializer);

            _actors.Add(router);

            return(router);
        }
コード例 #2
0
        public BrokerageService(IBrokerageServiceConfiguration configuration, IEventCache cache, ISerializer serializer)
        {
            _cache         = cache;
            _serializer    = serializer;
            _configuration = configuration;

            _cancel = new CancellationTokenSource();
        }
コード例 #3
0
        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();
        }