private void Client_OnSessionClosed(object sender, AVIMSessionClosedEventArgs e)
        {
            if (e.Code == 4111)
            {
                var logInVM = ServiceLocator.Current.GetInstance <LogInViewModel>();
                logInVM.Reset();
                this.CurrentClient = null;
                Application.Current.Dispatcher.Invoke((Action) delegate
                {
                    this.CenterContent = new LogIn();
                    this.LeftContent   = null;
                    this.BottomContent = null;
                });

                MessageBox.Show("您的 client Id 在别处登录,当前登录失效,连接已断开", "单点登录冲突");
            }
        }
Пример #2
0
 static void Tom_OnSessionClosed(object sender, AVIMSessionClosedEventArgs e)
 {
 }