public ControlMessageRouter(IPublicRemoteQueue remote,
                             IOptions <RoutingQueueSettings> settings,
                             ILogger <ControlMessageRouter> logger,
                             IAuthorizationService auth)
 {
     this.m_publicQueue = remote;
     this.m_authService = auth;
     this.m_settings    = settings.Value;
     this.m_logger      = logger;
     this.m_counter     = Metrics.CreateCounter("router_controlmessage_messages_routed_total", "Total number of routed control messages.");
 }
Esempio n. 2
0
 public HealthMonitoringService(IQueue <IPlatformMessage> inputQueue,
                                IRemoteTriggerQueue triggerQueue,
                                IRemoteLiveDataQueue @internal,
                                IPublicRemoteQueue @public,
                                IPublicMqttClient publicClient,
                                IInternalMqttClient internalClient,
                                IOptions <HealthCheckSettings> settings)
 {
     this.m_liveDataQueues     = @internal;
     this.m_publicQueue        = @public;
     this.m_inputQueue         = inputQueue;
     this.m_internalMqttClient = internalClient;
     this.m_publicMqttClient   = publicClient;
     this.m_triggerQueue       = triggerQueue;
     this.m_settings           = settings.Value;
 }
Esempio n. 3
0
 public ActuatorPublishService(IPublicRemoteQueue remote,
                               IOptions <RoutingQueueSettings> options,
                               ILogger <ActuatorPublishService> logger) : base(TimeSpan.FromSeconds(5), options.Value.PublicInterval, logger)
 {
     this.m_remote = remote;
 }