Ejemplo n.º 1
0
 /// <summary>
 /// Sets messages as exported to the client database asynchronously
 /// </summary>
 /// <param name="messageId"></param>
 public static void SetMessageExportedAsync(int messageId)
 {
     SQLWorker.Default.Add(CreateSetMessageExportedCommand(messageId),
                           null,
                           // Skip error messages
                           PTFUtils.EmptyThreadExceptionEventHandler());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Insert message to the database. Do not fire errors.
 /// </summary>
 /// <param name="message"></param>
 /// <param name="source"></param>
 /// <param name="stacktrase"></param>
 /// <param name="onServer"></param>
 public static void InsertMessageAsync(string message, int clientID, eSources source, eMessageTypes type, string stackTrase, DateTime dateGenerated)
 {
     // Do not refire errors
     SQLWorker.Default.Add(CreateInsertMessage(message, clientID, source, type, stackTrase, dateGenerated),
                           //No Errors!
                           PTFUtils.EmptyThreadExceptionEventHandler());
 }