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
We are changing SignalR's HubConnectionContext constructors to take in an options type rather than multiple parameters to future proof adding options. This removes two constructors in favor of a single constructor which takes an option type.
Version introduced
3.0
Old behavior
Prior to 3.0 HubConnectionContext had two constructors:
This new constructor makes use of a new options object, so we can expand the features of HubConnectionContext in the future without making more constructors and breaking changes.
SignalR HubConnectionContext constructors changing
We are changing SignalR's HubConnectionContext constructors to take in an options type rather than multiple parameters to future proof adding options. This removes two constructors in favor of a single constructor which takes an option type.
Version introduced
3.0
Old behavior
Prior to 3.0
HubConnectionContext
had two constructors:New behavior
In 3.0 these 2 constructors have been removed and replaced them with a new one:
Reason for change
This new constructor makes use of a new options object, so we can expand the features of
HubConnectionContext
in the future without making more constructors and breaking changes.Recommended action
Instead of calling:
They would now call:
Category
ASP.NET Core
Affected APIs
HubConnectionContext.ctor(ConnectionContext, TimeSpan , ILoggerFactory)
HubConnectionContext.ctor(ConnectionContext, TimeSpan , ILoggerFactory, TimeSpan)
Issue metadata
The text was updated successfully, but these errors were encountered: