public CommandConsumer(IServiceProvider provider, CommandCounter counter, IRoutingCache cache, ILogger <CommandConsumer> logger) { this.m_logger = logger; this.m_handler = new DataUpdateHandler(cache, provider); this.m_liveUpdater = new LiveDataRouteUpdateHandler(cache); this.m_counter = counter; }
public LiveDataReloadService(IRoutingCache cache, IOptions <DataReloadSettings> settings, ILogger <LiveDataReloadService> logger) : base(TimeSpan.FromSeconds(5), settings.Value.LiveDataReloadInterval, logger) { this.m_logger = logger; this.m_cache = cache; }
public DataReloadService(IServiceProvider provider, IRemoteLiveDataQueue liveDataQueue, IRoutingCache cache, IOptions <DataReloadSettings> settings, ILogger <DataReloadService> logger) : base(settings.Value.StartDelay, settings.Value.DataReloadInterval, logger) { this.m_provider = provider; this.m_queue = liveDataQueue; this.m_logger = logger; this.m_cache = cache; this.m_loaded = false; this.m_settings = settings.Value; }
public CompositeRouter(IRoutingCache cache, IQueue <IPlatformMessage> messageQueue, IRemoteNetworkEventQueue eventQueue, IOptions <RoutingQueueSettings> options, ILogger <CompositeRouter> logger) { this.m_routers = new List <IRouter>(); this.m_lock = new ReaderWriterLockSlim(); this.m_cache = cache; this.m_eventQueue = eventQueue; this.m_messageQueue = messageQueue; this.m_logger = logger; this.m_dequeueBatchSize = options.Value.DequeueBatchSize ?? DequeueBatchSize; this.m_disposed = false; this.m_dropCounter = Metrics.CreateCounter("router_messages_dropped_total", "Total number of measurements/messages dropped."); this.m_counter = Metrics.CreateCounter("router_messages_routed_total", "Total number of measurements/messages routed."); this.m_duration = Metrics.CreateHistogram("router_duration_seconds", "Message routing duration."); }
public DataUpdateHandler(IRoutingCache cache, IServiceProvider provider) { this.m_cache = cache; this.m_provider = provider; }
public CacheTimeoutScanService(IRoutingCache cache, ILogger <CacheTimeoutScanService> logger, IOptions <DataReloadSettings> settings) : base(settings.Value.TimeoutScanInterval, settings.Value.TimeoutScanInterval, logger) { this.m_cache = cache; this.m_logger = logger; }
// TODO: inject dependency of config provider, so that we can change routing algorithm without restarting service public HubConnectionRouter(IRoutingCache cache, ILogger <HubConnectionRouter> logger) { _cache = cache; _logger = logger; }
public AuthorizationRouter(IRoutingCache cache, ILogger <AuthorizationRouter> auth) { this.m_logger = auth; this.m_cache = cache; }
public LiveDataRouteUpdateHandler(IRoutingCache cache) { this.m_cache = cache; }