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