public DeviceAuthManager(string authCode, IDeviceAuthRepository repository) { if (String.IsNullOrEmpty(authCode)) throw new ArgumentException("authCode cannot be null or empty"); if (repository == null) throw new ArgumentNullException("repository"); _authCode = authCode; _repository = repository; }
public DeviceAuthProvider( ILogger <DeviceAuthProvider> logger, IDeviceAuthService deviceAuthSrv, IDeviceAuthRepository deviceAuthRepo) { _logger = logger; _deviceAuthSrv = deviceAuthSrv; _deviceAuthRepo = deviceAuthRepo; }