public Service(ISynchronizeInvoke syncInvoke, IServers servers) { __SyncInvoke = syncInvoke; __ServiceProxy = new IVPNClientProxy(); __ServiceProxy.Connected += ServiceProxy_Connected; __ServiceProxy.ConnectionState += ServiceProxy_ConnectionState; __ServiceProxy.Disconnected += ServiceProxy_Disconnected; __ServiceProxy.KillSwitchStatus += (bool?enabled, bool?isPersistant, bool?isAllowLAN, bool?isAllowMulticast) => { if (enabled != null) { UpdateKillSwitchIsEnabled((bool)enabled); } if (isPersistant != null) { UpdateKillSwitchIsPersistent((bool)isPersistant); } }; __ServiceProxy.AlternateDNSChanged += (string dns) => { AlternateDNSChanged(dns); }; __State = ServiceState.Uninitialized; __InitializationSignal = new ManualResetEvent(false); Servers = servers; SetProxyHandlers(); }
public Service(ISynchronizeInvoke syncInvoke, IServers servers) { __SyncInvoke = syncInvoke; __ServiceProxy = new IVPNClientProxy(); __ServiceProxy.Connected += ServiceProxy_Connected; __ServiceProxy.ConnectionState += ServiceProxy_ConnectionState; __ServiceProxy.Disconnected += ServiceProxy_Disconnected; __State = ServiceState.Uninitialized; __InitializationSignal = new ManualResetEvent(false); Servers = servers; SetProxyHandlers(); }
public ServersViewModel(IServers servers, IEventAggregator eventAggregator) { _tesonetServers = servers; _eventAggregator = eventAggregator; }
public ServerController() { todosServers = new Servers(); }
public LoginSucceededMessage(IServers servers) => Servers = servers;