public async Task SetUserLogout()//注销 { await locker.WaitAsync(); try { LoginInfo.ClearLoginInfo(); _databaseComponent.ClearDatabase(); //重新获取本地配置文件 _localConfiguration.ReadServerInfo(); //_eventAggregator.GetEvent<ServerChangedEvent>().Publish(_localConfiguration.ServerInfoList); MenuManageList.Dictionary.Values.ToList().ForEach(p => p.Visibility = Visibility.Collapsed); } finally { locker.Release(); } }