Beispiel #1
0
        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();
        }
Beispiel #2
0
        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;
 }
Beispiel #4
0
 public ServerController()
 {
     todosServers = new Servers();
 }
 public LoginSucceededMessage(IServers servers)
 => Servers = servers;