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); }
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); }