dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.65k stars 25.28k forks source link

Does the. net client support dynamically adding new methods after connection to provide them for the server to call #32924

Open bxjg1987 opened 5 months ago

bxjg1987 commented 5 months ago

Description

Does the. net client support dynamically adding new methods after connection to provide them for the server to call

Page URL

https://learn.microsoft.com/zh-cn/aspnet/core/signalr/dotnet-client?view=aspnetcore-8.0&tabs=visual-studio

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/signalr/dotnet-client.md

Document ID

36052173-7061-6d01-8aed-915685cd7cf6

Article author

@bradygaster

bradygaster commented 1 month ago

We should add @mikekistler as the owner for this one.

mikekistler commented 1 month ago

Looking at the doc, I think the answer to this question is "No". The doc says:

Define methods the hub calls using connection.On after building, but before starting the connection.

So based on the doc, I believe that all methods must be defined before starting the connection.