예제 #1
0
 /// <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;
 }
예제 #2
0
        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;
 }
예제 #4
0
 public DeviceService(IDeviceBusiness deviceBusiness)
 {
     this.deviceBusiness = deviceBusiness;
 }
예제 #5
0
 public DeviceController(ILogger <DeviceController> logger, IDeviceBusiness deviceBusiness)
 {
     this.logger         = logger;
     this.deviceBusiness = deviceBusiness;
 }
예제 #6
0
 public ClientBusiness(IClientRepository repository, IDeviceBusiness deviceBusiness)
 {
     _repository     = repository;
     _deviceBusiness = deviceBusiness;
 }