Exemple #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);
 }
Exemple #2
0
 internal static void Raise(TaskLog log)
 {
     Occured?.Invoke(typeof(TaskLog), log);
 }
Exemple #3
0
		internal static void Raise(TaskLog log)
		{
			Occured?.Invoke(typeof(TaskLog), log);
		}