Пример #1
0
 static MessagelogAPI()
 {
     QuerySingleLogCompleted       = new QuerySingleLogDelegate(OnQuerySingleLogCompleted);
     QueryLogCompleted             = new QueryMessageLogDelegate(OnQuerylogCompleted);
     OperateMsglogByObjIdCompleted = new OperateMsglogByObjectIdDelegate(OnOperateMsglogByObjIdCompleted);
     OperateMsglogByLogIdCompleted = new OperateMsglogByLogIdDelegate(OnOperateMsglogByLogIdCompleted);
     NormalOperationCompleted      = new OperateMsglogCommonDelegate(OnNormalOperationCompleted);
 }
 static MessagelogAPI()
 {
     QuerySingleLogCompleted       = OnQuerySingleLogCompleted;
     QueryLogCompleted             = OnQuerylogCompleted;
     OperateMsglogByObjIdCompleted = OnOperateMsglogByObjIdCompleted;
     OperateMsglogByLogIdCompleted = OnOperateMsglogByLogIdCompleted;
     NormalOperationCompleted      = OnNormalOperationCompleted;
     OnMsglogStatusChanged         = MsglogChangedCallback;
     OnGlobalMsglogStatusChanged   = GlobalMsglogStatusChangedCallback;
     OnUpdateLocalExtCompleted     = UpdateLocalExtCallback;
 }
Пример #3
0
 internal static extern void nim_msglog_read_all_async([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string json_extension,
                                                       OperateMsglogCommonDelegate cb,
                                                       IntPtr user_data);
Пример #4
0
 internal static extern void nim_msglog_import_db_async([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string src_path, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string json_extension, OperateMsglogCommonDelegate res_cb, IntPtr res_user_data, ImportMsglogProgressDelegate prg_cb, IntPtr prg_user_data);
Пример #5
0
 public static extern void nim_msglog_export_db_async([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string dst_path, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string json_extension, OperateMsglogCommonDelegate cb, IntPtr user_data);
Пример #6
0
 public static extern void nim_msglog_delete_all_async(bool delete_sessions, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string json_extension, OperateMsglogCommonDelegate cb, IntPtr user_data);