コード例 #1
0
        public VpnConnectionHandler(
            KillSwitch.KillSwitch killSwitch,
            IVpnConnection vpnConnection,
            ILogger logger,
            IServiceSettings serviceSettings)
        {
            _killSwitch      = killSwitch;
            _vpnConnection   = vpnConnection;
            _logger          = logger;
            _serviceSettings = serviceSettings;

            _vpnConnection.StateChanged += VpnConnection_StateChanged;
        }
コード例 #2
0
 public VpnConnectionHandler(
     KillSwitch.KillSwitch killSwitch,
     NetworkSettings networkSettings,
     IVpnConnection vpnConnection,
     ILogger logger,
     IServiceSettings serviceSettings,
     ITaskQueue taskQueue)
 {
     _networkSettings             = networkSettings;
     _killSwitch                  = killSwitch;
     _vpnConnection               = vpnConnection;
     _logger                      = logger;
     _serviceSettings             = serviceSettings;
     _taskQueue                   = taskQueue;
     _vpnConnection.StateChanged += VpnConnection_StateChanged;
 }