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