/// <summary> /// Ctor /// </summary> /// <param name="devicePingManipulation"></param> /// <param name="pingDeviceManipulation"></param> /// <param name="deviceManipulation"></param> /// <param name="publishEndpoint"></param> public DevicePingController(IDevicePingManipulation devicePingManipulation, IPingDeviceManipulation pingDeviceManipulation, IDeviceManipulation deviceManipulation, IPublishEndpoint publishEndpoint) { _devicePingManipulation = devicePingManipulation ?? throw new ArgumentNullException("devicePingManipulation cannot be null"); _pingDeviceManipulation = pingDeviceManipulation ?? throw new ArgumentNullException("pingDeviceManipulation cannot be null"); _deviceManipulation = deviceManipulation ?? throw new ArgumentNullException("deviceManipulation cannot be null"); _publishEndpoint = publishEndpoint; }
/// <summary> /// Constructor /// </summary> /// <param name="deviceManipulation"><see cref="IDeviceManipulation"/></param> public DeviceController(IDeviceManipulation deviceManipulation) { _deviceManipulation = deviceManipulation; }
public DevicePingManipulation(IDevicePingRepository devicePingRepository, IDeviceManipulation deviceManipulation, IPublishEndpoint publishEndpoint) { _devicePingRepository = devicePingRepository ?? throw new ArgumentNullException("devicePingRepository can't be null"); _deviceManipulation = deviceManipulation ?? throw new ArgumentNullException("deviceManipulation can't be null"); _publishEndpoint = publishEndpoint ?? throw new ArgumentNullException("publishEndpoint can't be null");; }