/// <summary> /// Initializes a new instance of the TelemetryApiController class. /// </summary> /// <param name="deviceTelemetryLogic"> /// The IDeviceRegistryListLogic implementation that the new instance /// will use. /// </param> /// <param name="alertsLogic"> /// The IAlertsLogic implementation that the new instance will use. /// </param> /// <param name="deviceLogic"> /// The IDeviceLogic implementation that the new instance will use. /// </param> public TelemetryApiController( IDeviceTelemetryLogic deviceTelemetryLogic, IAlertsLogic alertsLogic, IDeviceLogic deviceLogic, IConfigurationProvider configProvider) { if (deviceTelemetryLogic == null) { throw new ArgumentNullException("deviceTelemetryLogic"); } if (alertsLogic == null) { throw new ArgumentNullException("alertsLogic"); } if (deviceLogic == null) { throw new ArgumentNullException("deviceLogic"); } if (configProvider == null) { throw new ArgumentNullException("configProvider"); } _deviceTelemetryLogic = deviceTelemetryLogic; _alertsLogic = alertsLogic; _deviceLogic = deviceLogic; _configProvider = configProvider; }
/// <summary> /// Initializes a new instance of the TelemetryApiController class. /// </summary> /// <param name="deviceTelemetryLogic"> /// The IDeviceRegistryListLogic implementation that the new instance /// will use. /// </param> /// <param name="alertsLogic"> /// The IAlertsLogic implementation that the new instance will use. /// </param> /// <param name="deviceLogic"> /// The IDeviceLogic implementation that the new instance will use. /// </param> public TelemetryApiController( IDeviceTelemetryLogic deviceTelemetryLogic, IAlertsLogic alertsLogic, IDeviceLogic deviceLogic, IConfigurationProvider configProvider) { if (deviceTelemetryLogic == null) { throw new ArgumentNullException("deviceTelemetryLogic"); } if (alertsLogic == null) { throw new ArgumentNullException("alertsLogic"); } if(deviceLogic == null) { throw new ArgumentNullException("deviceLogic"); } if (configProvider == null) { throw new ArgumentNullException("configProvider"); } _deviceTelemetryLogic = deviceTelemetryLogic; _alertsLogic = alertsLogic; _deviceLogic = deviceLogic; _configProvider = configProvider; }
/// <summary> /// Initializes a new instance of the TelemetryApiController class. /// </summary> /// <param name="deviceTelemetryLogic"> /// The IDeviceRegistryListLogic implementation that the new instance /// will use. /// </param> /// <param name="alertsLogic"> /// The IAlertsLogic implementation that the new instance will use. /// </param> public TelemetryApiController( IDeviceTelemetryLogic deviceTelemetryLogic, IAlertsLogic alertsLogic) { if (deviceTelemetryLogic == null) { throw new ArgumentNullException("deviceTelemetryLogic"); } if (alertsLogic == null) { throw new ArgumentNullException("alertsLogic"); } _deviceTelemetryLogic = deviceTelemetryLogic; _alertsLogic = alertsLogic; }
public DeviceTelemetryActor( ILogger logger, IActorsLogger actorLogger, SendTelemetry sendTelemetryLogic, IInstance instance) { this.log = logger; this.actorLogger = actorLogger; this.sendTelemetryLogic = sendTelemetryLogic; this.instance = instance; this.Message = null; this.status = ActorStatus.None; this.deviceModel = null; this.deviceId = null; this.deviceStateActor = null; this.totalMessagesCount = 0; this.failedMessagesCount = 0; }
public DeviceTelemetryActor( ILogger logger, IActorsLogger actorLogger, IRateLimiting rateLimiting, SendTelemetry sendTelemetryLogic) { this.log = logger; this.actorLogger = actorLogger; this.rateLimiting = rateLimiting; this.sendTelemetryLogic = sendTelemetryLogic; this.Message = null; this.status = ActorStatus.None; this.deviceModel = null; this.deviceId = null; this.deviceStateActor = null; this.totalMessagesCount = 0; this.failedMessagesCount = 0; }
/// <summary> /// Initializes a new instance of the TelemetryApiController class. /// </summary> /// <param name="deviceTelemetryLogic"> /// The IDeviceRegistryListLogic implementation that the new instance /// will use. /// </param> /// <param name="alertsLogic"> /// The IAlertsLogic implementation that the new instance will use. /// </param> /// <param name="deviceLogic"> /// The IDeviceLogic implementation that the new instance will use. /// </param> public TelemetryApiController( IDeviceTelemetryLogic deviceTelemetryLogic, IAlertsLogic alertsLogic, IDeviceLogic deviceLogic, /*Michael*/ IBYDErrorLogic bydErrorLogic, IConfigurationProvider configProvider) { if (deviceTelemetryLogic == null) { throw new ArgumentNullException("deviceTelemetryLogic"); } if (alertsLogic == null) { throw new ArgumentNullException("alertsLogic"); } if (deviceLogic == null) { throw new ArgumentNullException("deviceLogic"); } if (configProvider == null) { throw new ArgumentNullException("configProvider"); } _deviceTelemetryLogic = deviceTelemetryLogic; _alertsLogic = alertsLogic; _deviceLogic = deviceLogic; //Michael if (bydErrorLogic == null) { throw new ArgumentNullException("bydErrorLogic"); } _bydErrorLogic = bydErrorLogic; //End _configProvider = configProvider; }
/// <summary> /// Initializes a new instance of the DashboardController class. /// </summary> /// <param name="deviceLogic">The IDeviceLogic implementation that the new instance will use.</param> /// <param name="deviceTelemetryLogic"> The IDeviceTelemetryLogic implementation that the new instance will use.</param> /// <param name="configProvider">The IConfigurationProvider implementation that the new intance will use.</param> public DashboardController( IDeviceLogic deviceLogic, IDeviceTelemetryLogic deviceTelemetryLogic, IConfigurationProvider configProvider) { if (deviceLogic == null) { throw new ArgumentNullException("deviceLogic"); } if (deviceTelemetryLogic == null) { throw new ArgumentNullException("deviceTelemetryLogic"); } if (configProvider == null) { throw new ArgumentNullException("configProvider"); } _deviceLogic = deviceLogic; _configProvider = configProvider; }