Exemplo n.º 1
0
 private void OnServerConnectionStarting(object sender, ServerConnectionEventArgs args)
 {
     args.ConnectionInfo = CurrentServerInfo;
     if (ServerConnectionStarting != null)
     {
         ServerConnectionStarting(this, args);
     }
 }
Exemplo n.º 2
0
        private void OnServerConnectionDisconnected(object sender, ServerConnectionEventArgs args)
        {
            args.ConnectionInfo = CurrentServerInfo;
            PurgeClient();

            if (ServerConnectionDisconnected != null)
            {
                ServerConnectionDisconnected(this, args);
            }
        }
Exemplo n.º 3
0
        public void OnServerConnectionSucceeded(object sender, ServerConnectionEventArgs args)
        {
            args.ConnectionInfo = CurrentServerInfo;
            if (ServerConnectionSucceeded != null)
            {
                ServerConnectionSucceeded(this, args);
            }

            RequestAuth(CurrentServerInfo.Password);
        }