Exemplo n.º 1
0
        public Jinher.AMP.App.Deploy.ApplicationDTO GetAppById(System.Guid appId)
        {
            Jinher.AMP.App.Deploy.ApplicationDTO applicationDTO = null;
            try
            {
                //***********   暂时注释调试
                //applicationDTO = GlobalCacheWrapper.GetData(RedisKeyConst.AppInfo, appId.ToString(), CacheTypeEnum.redisSS, "BTPCache") as Jinher.AMP.App.Deploy.ApplicationDTO;
                //if (applicationDTO != null)
                //{
                //    return applicationDTO;
                //}
                //Jinher.AMP.App.IBP.Facade.AppManagerFacade appManagerFacade = new App.IBP.Facade.AppManagerFacade();
                //appManagerFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo();
                //applicationDTO = appManagerFacade.GetAppById(appId);
                //if (applicationDTO != null)
                //{
                //    string json = JsonHelper.JsonSerializer<Jinher.AMP.App.Deploy.ApplicationDTO>(applicationDTO);
                //    GlobalCacheWrapper.Add(RedisKeyConst.AppInfo, appId.ToString(), json, CacheTypeEnum.redisSS, "BTPCache");
                //}



                Jinher.AMP.App.IBP.Facade.AppManagerFacade appManagerFacade = new App.IBP.Facade.AppManagerFacade();
                appManagerFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo();
                applicationDTO = appManagerFacade.GetAppById(appId);
            }
            catch (Exception ex)
            {
                LogHelper.Error(string.Format("APPBP.GetAppById服务异常:获取应用信息异常。 appId:{0}", appId), ex);
            }
            return(applicationDTO);
        }
Exemplo n.º 2
0
 public Jinher.AMP.App.Deploy.ApplicationDTO GetAppByIdInfo(System.Guid appId, ContextDTO contextDTO)
 {
     Jinher.AMP.App.Deploy.ApplicationDTO applicationDTO = null;
     try
     {
         Jinher.AMP.App.IBP.Facade.AppManagerFacade appManagerFacade = new App.IBP.Facade.AppManagerFacade();
         appManagerFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo();
         applicationDTO = appManagerFacade.GetAppById(appId);
     }
     catch (Exception ex)
     {
         LogHelper.Error(string.Format("APPSV.GetAppByIdInfo服务异常:获取应用信息异常。 appId:{0}", appId), ex);
     }
     return(applicationDTO);
 }