Skip to content

Best practice to dispose SignalR HubConnection #13771

@jasonycw

Description

@jasonycw

Is there a best practice or suggestion for how to stop/dispose HubConnection?

Since there is no IDisposable for HubConnection, we cannot use using, any suggestion if we need to use StopAsync and DisposeAsync explicitly?

Any performance impact to use or not to use StopAsync and DisposeAsync?


Document Details

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions