public ISuperLogTable aggregate(ISuperLogEntryList entries, SuperLogTableColumnSet colSet) { IntPtr table = IntPtr.Zero; uint error = SuperLoggingClientLibrary.VmDirSuperLogGetTable( ((SuperLogEntryList)entries).getIntPtr(), convertColumnSetToIntPtr(colSet), out table ); validate("aggregate", error); return(new SuperLogTable(table)); }
private static void testClear(ISuperLoggingConnection conn) { conn.clear(); ISuperLogEntryList list = conn.getAllEntries(); Console.WriteLine("GetAllEntries after clear: " + list.getCount()); conn.clear(); ISuperLoggingCookie cookie = new SuperLoggingCookie(); uint pageSize = 100; list = conn.getPagedEntries(cookie, pageSize); Console.WriteLine("GetPagedEntries after clear: " + list.getCount()); return; }
private static void testGetTable(ISuperLoggingConnection conn) { conn.enable(); ISuperLogEntryList list = conn.getAllEntries(); SuperLogTableColumnSet colSet = new SuperLogTableColumnSet(); colSet[SuperLogTableColumn.LOGIN_DN] = true; colSet[SuperLogTableColumn.OPERATION] = true; colSet[SuperLogTableColumn.STRING] = true; colSet[SuperLogTableColumn.ERROR_CODE] = true; colSet[SuperLogTableColumn.AVG_TIME] = true; ISuperLogTable table = conn.aggregate(list, colSet); foreach (ISuperLogTableRow r in table) { Console.WriteLine(r.ToString()); } return; }
public ISuperLogTable aggregate(ISuperLogEntryList entries, SuperLogTableColumnSet colSet) { IntPtr table = IntPtr.Zero; uint error = SuperLoggingClientLibrary.VmDirSuperLogGetTable( ((SuperLogEntryList)entries).getIntPtr(), convertColumnSetToIntPtr(colSet), out table ); validate("aggregate", error); return new SuperLogTable(table); }