Skip to content

SignalR HubConnectionContext constructors changing #369

@BrennanConroy

Description

@BrennanConroy

Prior to 3.0 HubConnectionContext had two constructors:

public HubConnectionContext(ConnectionContext connectionContext, TimeSpan keepAliveInterval, ILoggerFactory loggerFactory);
public HubConnectionContext(ConnectionContext connectionContext, TimeSpan keepAliveInterval, ILoggerFactory loggerFactory, TimeSpan clientTimeoutInterval);

In 3.0 these 2 constructors have been removed and replaced them with a new one:

public HubConnectionContext(ConnectionContext connectionContext, HubConnectionContextOptions contextOptions, ILoggerFactory loggerFactory)

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.

Use dotnet/aspnetcore#11431 to discuss this.

This announcement has been migrated to: dotnet/docs#14845

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0.0Announcements related to ASP.NET Core 3.0AnnouncementBreaking changeDocumentedThe breaking change has been published to the .NET Core docsMigrated

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions