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
* Annotate SignalR server for native AOT
Fix SignalR Server's usage of MakeGenericMethod when using a streaming reader (IAsyncEnumerable or ChannelReader) following the same approach as the client. Add a runtime check and throw an exception when trying to stream a ValueType in native AOT.
Adjust the public annotations:
* Remove RequiresUnreferencedCode from AddSignalR
* Add RequiresUnreferencedCode to MessagePack and NewtonsoftJson protocols
Support trimming and AOT in DefaultHubDispatcher by adding a feature switch to turn off custom awaitable support.
Update ObjectMethodExecutor to support trimming and AOT by a new method that doesn't look for custom awaitables, and uses reflection instead of Linq.Expressions.
* Fix LinkabilityChecker warnings
* Update warning suppressions baseline.
* Adjust RequiresDynamicCode annotations
* Move RequiresDynamicCode to the whole Hub<T> class, so developers always get a warning when using IHubContext<THub, T>. This helps because THub needs to be a Hub<T>, which will warn as soon as it is used.
* Suppress the warning in AddSignalRCore that references HubContext<THub, T> since users will get warnings when they try using IHubContext<THub, T>.
* Add more unit tests
* Move SignalR server tests down a folder to make room for new tests.
* Add trimming test for using typed clients.
* Fix tests
* Rename the feature switch to IsCustomAwaitableSupported to align with other feature switch naming
0 commit comments