Пример #1
0
 public static void Forget(
     this Task task,
     [CallerMemberName] string callerMemberName = "",
     [CallerFilePath] string callerFilePath     = "",
     [CallerLineNumber] int callerLineNumber    = 0)
 {
     task.ContinueWith(
         x => TaskLog.Raise(new TaskLog(callerMemberName, callerFilePath, callerLineNumber, x.Exception)),
         TaskContinuationOptions.OnlyOnFaulted);
 }
Пример #2
0
 internal static void Raise(TaskLog log)
 {
     Occured?.Invoke(typeof(TaskLog), log);
 }
Пример #3
0
		internal static void Raise(TaskLog log)
		{
			Occured?.Invoke(typeof(TaskLog), log);
		}