public RasEnumDevicesService(IRasApi32 api, IStructArrayFactory structFactory, IExceptionPolicy exceptionPolicy, IDeviceTypeFactory deviceTypeFactory) { this.api = api ?? throw new ArgumentNullException(nameof(api)); this.structFactory = structFactory ?? throw new ArgumentNullException(nameof(structFactory)); this.exceptionPolicy = exceptionPolicy ?? throw new ArgumentNullException(nameof(exceptionPolicy)); this.deviceTypeFactory = deviceTypeFactory ?? throw new ArgumentNullException(nameof(deviceTypeFactory)); }
public RasGetConnectStatusService(IRasApi32 api, IStructFactory structFactory, IIPAddressConverter ipAddressConverter, IExceptionPolicy exceptionPolicy, IDeviceTypeFactory deviceTypeFactory) { this.api = api ?? throw new ArgumentNullException(nameof(api)); this.structFactory = structFactory ?? throw new ArgumentNullException(nameof(structFactory)); this.ipAddressConverter = ipAddressConverter ?? throw new ArgumentNullException(nameof(ipAddressConverter)); this.exceptionPolicy = exceptionPolicy ?? throw new ArgumentNullException(nameof(exceptionPolicy)); this.deviceTypeFactory = deviceTypeFactory ?? throw new ArgumentNullException(nameof(deviceTypeFactory)); }
public RasEnumConnectionsService(IRasApi32 api, IDeviceTypeFactory deviceTypeFactory, IExceptionPolicy exceptionPolicy, IStructArrayFactory structFactory, IServiceProvider serviceLocator) { this.api = api ?? throw new ArgumentNullException(nameof(api)); this.deviceTypeFactory = deviceTypeFactory ?? throw new ArgumentNullException(nameof(deviceTypeFactory)); this.exceptionPolicy = exceptionPolicy ?? throw new ArgumentNullException(nameof(exceptionPolicy)); this.structFactory = structFactory ?? throw new ArgumentNullException(nameof(structFactory)); this.serviceLocator = serviceLocator ?? throw new ArgumentNullException(nameof(serviceLocator)); }