Skip to content

Commit 972b708

Browse files
Update Obsolete Messages
1 parent eff777d commit 972b708

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Src/AsyncAwaitBestPractices/SafeFireAndForgetExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static class SafeFireAndForgetExtensions
5454
/// <param name="task">ValueTask.</param>
5555
/// <param name="continueOnCapturedContext">If set to <c>true</c>, continue on captured context; this will ensure that the Synchronization Context returns to the calling thread. If set to <c>false</c>, continue on a different context; this will allow the Synchronization Context to continue on a different thread</param>
5656
/// <param name="onException">If an exception is thrown in the ValueTask, <c>onException</c> will execute. If onException is null, the exception will be re-thrown</param>
57-
[Obsolete("Use Overloaded Method: SafeFireAndForget(Action<Exception> onException, bool continueOnCapturedContext)")]
57+
[Obsolete("Use SafeFireAndForget(Action<Exception> onException, bool continueOnCapturedContext)")]
5858
public static void SafeFireAndForget(this ValueTask task, in bool continueOnCapturedContext, in Action<Exception>? onException) => HandleSafeFireAndForget(task, continueOnCapturedContext, onException);
5959

6060

@@ -65,7 +65,7 @@ public static class SafeFireAndForgetExtensions
6565
/// <param name="continueOnCapturedContext">If set to <c>true</c>, continue on captured context; this will ensure that the Synchronization Context returns to the calling thread. If set to <c>false</c>, continue on a different context; this will allow the Synchronization Context to continue on a different thread</param>
6666
/// <param name="onException">If an exception is thrown in the Task, <c>onException</c> will execute. If onException is null, the exception will be re-thrown</param>
6767
/// <typeparam name="TException">Exception type. If an exception is thrown of a different type, it will not be handled</typeparam>
68-
[Obsolete("Use Overloaded Method: SafeFireAndForget<TException>(Action<TException> onException, bool continueOnCapturedContext)")]
68+
[Obsolete("Use SafeFireAndForget<TException>(Action<TException> onException, bool continueOnCapturedContext)")]
6969
public static void SafeFireAndForget<TException>(this ValueTask task, in bool continueOnCapturedContext, in Action<TException>? onException) where TException : Exception => HandleSafeFireAndForget(task, continueOnCapturedContext, onException);
7070

7171

@@ -75,7 +75,7 @@ public static class SafeFireAndForgetExtensions
7575
/// <param name="task">Task.</param>
7676
/// <param name="continueOnCapturedContext">If set to <c>true</c>, continue on captured context; this will ensure that the Synchronization Context returns to the calling thread. If set to <c>false</c>, continue on a different context; this will allow the Synchronization Context to continue on a different thread</param>
7777
/// <param name="onException">If an exception is thrown in the Task, <c>onException</c> will execute. If onException is null, the exception will be re-thrown</param>
78-
[Obsolete("Use Overloaded Method: SafeFireAndForget(Action<Exception> onException, bool continueOnCapturedContext)")]
78+
[Obsolete("Use SafeFireAndForget(Action<Exception> onException, bool continueOnCapturedContext)")]
7979
public static void SafeFireAndForget(this Task task, in bool continueOnCapturedContext, in Action<Exception>? onException) => HandleSafeFireAndForget(task, continueOnCapturedContext, onException);
8080

8181
/// <summary>
@@ -85,7 +85,7 @@ public static class SafeFireAndForgetExtensions
8585
/// <param name="continueOnCapturedContext">If set to <c>true</c>, continue on captured context; this will ensure that the Synchronization Context returns to the calling thread. If set to <c>false</c>, continue on a different context; this will allow the Synchronization Context to continue on a different thread</param>
8686
/// <param name="onException">If an exception is thrown in the Task, <c>onException</c> will execute. If onException is null, the exception will be re-thrown</param>
8787
/// <typeparam name="TException">Exception type. If an exception is thrown of a different type, it will not be handled</typeparam>
88-
[Obsolete("Use Overloaded Method: SafeFireAndForget<TException>(Action<TException> onException, bool continueOnCapturedContext)")]
88+
[Obsolete("Use SafeFireAndForget<TException>(Action<TException> onException, bool continueOnCapturedContext)")]
8989
public static void SafeFireAndForget<TException>(this Task task, in bool continueOnCapturedContext, in Action<TException>? onException) where TException : Exception => HandleSafeFireAndForget(task, continueOnCapturedContext, onException);
9090
#endregion
9191

0 commit comments

Comments
 (0)