public QueuingRequestsWrapper( ITaskQueue taskQueue, IVpnConnection origin) { _taskQueue = taskQueue; _origin = origin; }
public LoggingWrapper( ILogger logger, IVpnConnection origin) { _logger = logger; _origin = origin; _origin.StateChanged += Origin_StateChanged; }
public VpnService( ILogger logger, IEnumerable <ServiceHostFactory> serviceHostsFactories, IVpnConnection vpnConnection, Ipv6 ipv6) { _ipv6 = ipv6; _logger = logger; _vpnConnection = vpnConnection; _serviceHostsFactories = new List <ServiceHostFactory>(serviceHostsFactories); _hosts = new List <SafeServiceHost>(); InitializeComponent(); }
public VpnConnectionHandler( KillSwitch.KillSwitch killSwitch, IVpnConnection vpnConnection, ILogger logger, IServiceSettings serviceSettings) { _killSwitch = killSwitch; _vpnConnection = vpnConnection; _logger = logger; _serviceSettings = serviceSettings; _vpnConnection.StateChanged += VpnConnection_StateChanged; }
public DefaultGatewayWrapper( ILogger logger, string tapAdapterId, string tapAdapterDescription, INetworkInterfaces networkInterfaces, IVpnConnection origin) { _logger = logger; _tapAdapterDescription = tapAdapterDescription; _tapAdapterId = tapAdapterId; _networkInterfaces = networkInterfaces; _origin = origin; _origin.StateChanged += Origin_StateChanged; }
private IVpnConnection GetVpnConnection(IComponentContext c, IVpnConnection connection) { return(new ObservableConnection( new FilteringStateWrapper( new QueuingRequestsWrapper( c.Resolve <ITaskQueue>(), new Ipv6HandlingWrapper( c.Resolve <IServiceSettings>(), c.Resolve <IFirewall>(), c.Resolve <ObservableNetworkInterfaces>(), c.Resolve <Ipv6>(), c.Resolve <ITaskQueue>(), connection))))); }
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; }
public Ipv6HandlingWrapper( IServiceSettings serviceSettings, IFirewall firewall, ObservableNetworkInterfaces networkInterfaces, Ipv6 ipv6, ITaskQueue taskQueue, IVpnConnection origin) { _serviceSettings = serviceSettings; _firewall = firewall; _ipv6 = ipv6; _taskQueue = taskQueue; _origin = origin; _origin.StateChanged += Origin_StateChanged; _serviceSettings.SettingsChanged += OnServiceSettingsChanged; networkInterfaces.NetworkInterfacesAdded += NetworkInterfaces_NetworkInterfacesAdded; }
public VpnService( ILogger logger, Common.Configuration.Config config, IOsProcesses osProcesses, IEnumerable <ServiceHostFactory> serviceHostsFactories, IVpnConnection vpnConnection, Ipv6 ipv6) { _logger = logger; _config = config; _osProcesses = osProcesses; _serviceHostsFactories = new List <ServiceHostFactory>(serviceHostsFactories); _vpnConnection = vpnConnection; _ipv6 = ipv6; _hosts = new List <SafeServiceHost>(); InitializeComponent(); }
public ObservableConnection(IVpnConnection origin) { _origin = origin; _origin.StateChanged += Origin_StateChanged; }
public FilteringStateWrapper(IVpnConnection origin) { _origin = origin; _origin.StateChanged += Origin_StateChanged; }