HubCallerContext Class

Definition

A context abstraction for accessing information about the hub caller connection.

public ref class HubCallerContext abstract
public abstract class HubCallerContext
type HubCallerContext = class
Public MustInherit Class HubCallerContext
Inheritance
HubCallerContext

Constructors

HubCallerContext()

Properties

ConnectionAborted

Gets a CancellationToken that notifies when the connection is aborted.

ConnectionId

Gets the connection ID.

Features

Gets the collection of HTTP features available on the connection.

Items

Gets a key/value collection that can be used to share data within the scope of this connection.

User

Gets the user.

UserIdentifier

Gets the user identifier.

Methods

Abort()

Aborts the connection.

Extension Methods

GetHttpContext(HubCallerContext)

Gets HttpContext from the specified connection, or null if the connection is not associated with an HTTP request.

Applies to