Exemple #1
0
        internal static AdminSession CreateAdminSession()
        {
            AdminSession cqAdminSession = null;

            try
            {
                cqAdminSession = new AdminSession();
            }
            catch (COMException ex)
            {
                InteropErrorHandler.HandleCQException(ex);
            }
            catch (IOException ex)
            {
                InteropErrorHandler.HandleIOException(ex);
            }
            return(cqAdminSession);
        }
Exemple #2
0
        internal static Session CreateSession()
        {
            Session cqSession = null;

            try
            {
                cqSession = new SessionClass();
            }
            catch (COMException ex)
            {
                InteropErrorHandler.HandleCQException(ex);
            }
            catch (IOException ex)
            {
                InteropErrorHandler.HandleIOException(ex);
            }
            return(cqSession);
        }