示例#1
0
        private static HsvSession CreateHsvSession(string argDomain, string argUser, string argPassword, string argCluster, string argProduct, string argApplication)
        {
            HsxClient  hsxClient  = null;
            HsvSession hsvSession = null;
            object     server;
            object     session;

            try
            {
                hsxClient = new HsxClient();
                hsxClient.SetLogonInfoSSO(argDomain, argUser, "", argPassword);
                hsxClient.OpenApplication(argCluster, argProduct, argApplication, out server, out session);
                hsvSession = (HsvSession)session;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                DComHelper.ReleaseHelper(hsxClient);
            }
            return(hsvSession);
        }
示例#2
0
 public HfmData(HsvSession argHsvSession, HFMwSession argHFMwSession)
 {
     _HsvSession  = argHsvSession;
     _HFMwSession = argHFMwSession;
 }
示例#3
0
 public HfmDimension(HsvSession argHsvSession, HFMwSession argHFMwSession)
 {
     _HsvSession  = argHsvSession;
     _HFMwSession = argHFMwSession;
     init();
 }