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