C# Class Microsoft.AspNet.SignalR.Transports.TransportManager

The default ITransportManager implementation.
Inheritance: ITransportManager
Afficher le fichier Open project: SignalR/SignalR

Méthodes publiques

Méthode Description
GetTransport ( HostContext hostContext ) : ITransport

Gets the specified transport for the specified HostContext.

Register ( string transportName, ITransport>.Func transportFactory ) : void

Adds a new transport to the list of supported transports.

Remove ( string transportName ) : void

Removes a transport from the list of supported transports.

SupportsTransport ( string transportName ) : bool

Determines whether the specified transport is supported.

Private Methods

Méthode Description
TransportManager ( IDependencyResolver resolver ) : System

Method Details

GetTransport() public méthode

Gets the specified transport for the specified HostContext.
public GetTransport ( HostContext hostContext ) : ITransport
hostContext Microsoft.AspNet.SignalR.Hosting.HostContext The for the current request.
Résultat ITransport

Register() public méthode

Adds a new transport to the list of supported transports.
public Register ( string transportName, ITransport>.Func transportFactory ) : void
transportName string The specified transport.
transportFactory ITransport>.Func The factory method for the specified transport.
Résultat void

Remove() public méthode

Removes a transport from the list of supported transports.
public Remove ( string transportName ) : void
transportName string The specified transport.
Résultat void

SupportsTransport() public méthode

Determines whether the specified transport is supported.
public SupportsTransport ( string transportName ) : bool
transportName string The name of the transport to test.
Résultat bool