You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Mocking/JSInterop/MockJsRuntimeInvokeHandler.cs
+34-8Lines changed: 34 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ public IJSRuntime ToJsRuntime()
52
52
/// <typeparam name="TResult">The result type of the invocation</typeparam>
53
53
/// <param name="identifier">The identifier to setup a response for</param>
54
54
/// <param name="argumentsMatcher">A matcher that is passed arguments received in invocations to <paramref name="identifier"/>. If it returns true the invocation is matched.</param>
55
-
/// <returns>A <see cref="TaskCompletionSource{TResult}"/> whose <see cref="Task"/> is returned when the <paramref name="identifier"/> is invoked.</returns>
@@ -68,13 +68,41 @@ public JsRuntimePlannedInvocation<TResult> Setup<TResult>(string identifier, Fun
68
68
/// <typeparam name="TResult"></typeparam>
69
69
/// <param name="identifier">The identifier to setup a response for</param>
70
70
/// <param name="arguments">The arguments that an invocation to <paramref name="identifier"/> should match.</param>
71
-
/// <returns>A <see cref="TaskCompletionSource{TResult}"/> whose <see cref="Task"/> is returned when the <paramref name="identifier"/> is invoked.</returns>
/// Configure a planned JSInterop invocation with the <paramref name="identifier"/> and arguments
79
+
/// passing the <paramref name="argumentsMatcher"/> test, that should not receive any result.
80
+
/// </summary>
81
+
/// <param name="identifier">The identifier to setup a response for</param>
82
+
/// <param name="argumentsMatcher">A matcher that is passed arguments received in invocations to <paramref name="identifier"/>. If it returns true the invocation is matched.</param>
// TODO: Should we check the CancellationToken at this point and automatically call
126
-
// TrySetCanceled(CancellationToken) on the TaskCompletionSource? (https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.taskcompletionsource-1.trysetcanceled?view=netcore-3.0#System_Threading_Tasks_TaskCompletionSource_1_TrySetCanceled_System_Threading_CancellationToken_)
0 commit comments