Skip to content

CancellationToken in ISingleClientProxy.InvokeAsync is not optional #27996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SLjavad opened this issue Jan 2, 2023 · 8 comments
Open

CancellationToken in ISingleClientProxy.InvokeAsync is not optional #27996

SLjavad opened this issue Jan 2, 2023 · 8 comments
Assignees
Labels
doc-enhancement Pri1 seQUESTered Identifies that an issue has been imported into Quest. SignalR Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

@SLjavad
Copy link

SLjavad commented Jan 2, 2023

the CancellationToken parameter in InvokeAsync function is optional in Client Result section of document.
but it's not optional in real code

image

document :

image

please fix it


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 65762

@Rick-Anderson
Copy link
Contributor

Rick-Anderson commented Jan 2, 2023

ClientProxyExtensions.InvokeAsync shows it's required on each overload. @wadepickett move these embedded snippets to projects.

@BrennanConroy
Copy link
Member

And don't use default or new CancellationToken(false) or CancellationToken.None in the docs.

@wadepickett
Copy link
Contributor

wadepickett commented Feb 23, 2023

Related: #28459 : Use hubs in SignalR: Move all code examples to app project vers 7.0

Related discussion I need to remember to review on dotnet/aspnetcore (development) 11542
"CancellationToken in the hub method signature is only supported for Server to client streaming currently."

@wadepickett
Copy link
Contributor

Related to PR #dotnet/AspNetCore.Docs.Samples/pull/138, which is where I got stuck and this unfortunately sat for so long since I was having trouble getting a workable app sample together due to lack of experience with it. I will get back to it.

@dotnetrepoman dotnetrepoman bot added mapQuest clean move and removed mapQuest clean move labels Dec 3, 2024
@wadepickett wadepickett moved this from 🔖 Ready to 🏗 In progress in dotnet/AspNetCore.Docs March 2025 sprint Mar 5, 2025
@dotnetrepoman dotnetrepoman bot added the mapQuest clean move label Mar 5, 2025
@dotnet-policy-service dotnet-policy-service bot removed the mapQuest clean move label Mar 5, 2025
@dotnetrepoman dotnetrepoman bot added the mapQuest clean move label Mar 10, 2025
@dotnet-policy-service dotnet-policy-service bot removed the mapQuest clean move label Mar 10, 2025
@wadepickett wadepickett moved this from 🔖 Ready to 🏗 In progress in dotnet/AspNetCore.Docs April 2025 sprint Apr 2, 2025
@dotnetrepoman dotnetrepoman bot added the mapQuest clean move label Apr 2, 2025
@dotnet-policy-service dotnet-policy-service bot removed the mapQuest clean move label Apr 2, 2025
@dotnetrepoman dotnetrepoman bot added the mapQuest clean move label May 6, 2025
@wadepickett wadepickett moved this from 🔖 Ready to 🏗 In progress in dotnet/AspNetCore.Docs May 2025 sprint May 6, 2025
@dotnet-policy-service dotnet-policy-service bot removed the mapQuest clean move label May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Pri1 seQUESTered Identifies that an issue has been imported into Quest. SignalR Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
Status: 🏗 In progress
Status: 🏗 In progress
Status: 🏗 In progress
Status: 🔖 Ready
Development

No branches or pull requests

7 participants