IHubContext<THub> Interface

Definition

A context abstraction for a hub.

generic <typename THub>
 where THub : Hubpublic interface class IHubContext
public interface IHubContext<out THub> where THub : Hub
public interface IHubContext<THub> where THub : Hub
type IHubContext<'Hub (requires 'Hub :> Hub)> = interface
Public Interface IHubContext(Of Out THub)
Public Interface IHubContext(Of THub)

Type Parameters

THub
This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

Properties

Clients

Gets a IHubClients that can be used to invoke methods on clients connected to the hub.

Groups

Gets a IGroupManager that can be used to add and remove connections to named groups.

Applies to