Example #1
0
 private void OnOperationCompleted(OperationType operation, VersionControlStatus[] statusBefore, VersionControlStatus[] statusAfter, bool success)
 {
     if (OperationCompleted != null)
     {
         ThreadUtility.ExecuteOnMainThread(() =>
         {
             //D.Log(operation + " : " + (success ? "success":"failed"));
             try
             {
                 if (statusBefore == null)
                 {
                     statusBefore = new VersionControlStatus[0];
                 }
                 if (statusAfter == null)
                 {
                     statusAfter = new VersionControlStatus[0];
                 }
                 OperationCompleted(operation, statusBefore, statusAfter, success);
             }
             catch (Exception e)
             {
                 DebugLog.ThrowException(e);
             }
         });
     }
 }
Example #2
0
 private void OnOperationCompleted(OperationType operation, VersionControlStatus[] statusBefore, VersionControlStatus[] statusAfter, bool success)
 {
     if (OperationCompleted != null)
     {
         ThreadUtility.ExecuteOnMainThread(() =>
         {
             //D.Log(operation + " : " + (success ? "success":"failed"));
             OperationCompleted(operation, statusBefore, statusAfter, success);
         });
     }
 }
 public static void LogCustomEvent(string page, string pageTitle, string category, string action, string label, int?value)
 {
     ThreadUtility.ExecuteOnMainThread(() => SendRequest(page, pageTitle, category, action, label, value));
 }