public TriggersController(IHttpContextAccessor ctx, ISensorRepository sensors, ISensorLinkRepository links, ITriggerAdministrationRepository triggers, ICommandPublisher publisher, IApiKeyRepository keys) : base(ctx, sensors, links, keys) { this.m_triggers = triggers; this.m_mqtt = publisher; }
public SensorsController(IHttpContextAccessor ctx, ISensorRepository sensors, ILogger <SensorsController> logger, ISensorLinkRepository links, ITriggerAdministrationRepository triggers, ISensorService sensorService, IAccountRepository accounts, IApiKeyRepository keys, IDistributedCache <PaginationResponse <Sensor> > cache, ICommandPublisher mqtt) : base(ctx, sensors, links, keys) { this.m_logger = logger; this.m_sensorService = sensorService; this.m_mqtt = mqtt; this.m_triggers = triggers; this.m_accounts = accounts; this.m_cache = cache; this.m_rng = new Random(DateTime.UtcNow.Millisecond * DateTime.UtcNow.Second); }
public SensorService( ISensorRepository sensors, ISensorLinkRepository links, IMeasurementRepository measurements, ITriggerAdministrationRepository triggers, IControlMessageRepository control, IMessageRepository messages, IApiKeyRepository keys, IBlobService blobService, IBlobRepository blobs, ICommandPublisher mqtt ) { this.m_commandPublisher = mqtt; this.m_links = links; this.m_sensors = sensors; this.m_control = control; this.m_apiKeys = keys; this.m_measurements = measurements; this.m_triggers = triggers; this.m_messages = messages; this.m_blobService = blobService; this.m_blobs = blobs; }