public VpnConnectionHandler( KillSwitch.KillSwitch killSwitch, IVpnConnection vpnConnection, ILogger logger, IServiceSettings serviceSettings) { _killSwitch = killSwitch; _vpnConnection = vpnConnection; _logger = logger; _serviceSettings = serviceSettings; _vpnConnection.StateChanged += VpnConnection_StateChanged; }
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; }