예제 #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);
		}