/// <summary> /// /// </summary> /// <param name="exception"></param> /// <param name="eventId">0=Not specified</param> /// <returns></returns> public static void AddTomatoLog(this Exception exception, int eventId = 0) { var task = exception.AddTomatoLogAsync(eventId).ConfigureAwait(false).GetAwaiter(); task.GetResult(); }