/// <summary> /// Constructor /// </summary> /// <param name="deviceBusiness">The Device Business Object</param> /// <param name="mapper">The mapper</param> /// <param name="logger">The logger</param> public DevicesController(IDeviceBusiness deviceBusiness, IMapper mapper, ILogger <DevicesController> logger) { this._deviceBusiness = deviceBusiness; this._mapper = mapper; this._logger = logger; }
public MessageTask(ILogger <MessageTask> logger, IOptions <ServiceSettings> options, IDeviceBusiness deviceBusiness) { this.logger = logger; var iotHubEvent = options?.Value?.IotHubEvent; if (iotHubEvent == null) { throw new ArgumentNullException(); } this.eventHubsCompatibleEndpoint = iotHubEvent.EventHubsCompatibleEndpoint; this.eventHubsCompatiblePath = iotHubEvent.EventHubsCompatiblePath; this.iotHubSasKey = iotHubEvent.IotHubSasKey; this.iotHubSasKeyName = iotHubEvent.IotHubSasKeyName; this.deviceBusiness = deviceBusiness; InitClient(); }
public DeviceController(IDeviceBusiness business) { _business = business; }
public DeviceService(IDeviceBusiness deviceBusiness) { this.deviceBusiness = deviceBusiness; }
public DeviceController(ILogger <DeviceController> logger, IDeviceBusiness deviceBusiness) { this.logger = logger; this.deviceBusiness = deviceBusiness; }
public ClientBusiness(IClientRepository repository, IDeviceBusiness deviceBusiness) { _repository = repository; _deviceBusiness = deviceBusiness; }