Example #1
0
        /// <summary>更新WebApp的操作
        /// </summary>
        public void UpdateWebAppInfoDict()
        {
            var webAppInfoDtos = _webAppQueryService.FindAll();

            lock (_lockObject)
            {
                foreach (var webAppInfoDto in webAppInfoDtos)
                {
                    var webAppInfo = new WebAppInfo(webAppInfoDto.WebAppId, webAppInfoDto.AppKey, webAppInfoDto.AppName,
                                                    webAppInfoDto.Url, webAppInfoDto.VerifyTicketUrl, webAppInfoDto.PutAccountUrl,
                                                    webAppInfoDto.NotifyUrl);
                    _webAppInfoDict.Add(webAppInfo.WebAppId, webAppInfo);
                }
            }
        }
Example #2
0
 public ActionResult Index()
 {
     ViewData.Model = _webAppQueryService.FindAll();
     return(View());
 }