/// <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; }
/// <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; }