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

The default ITransportManager implementation.
Inheritance: ITransportManager
Afficher le fichier Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript

Méthodes publiques

Méthode Description
GetTransport ( HttpContext context ) : ITransport

Gets the specified transport for the specified HttpContext.

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 ( IServiceProvider serviceProvider, IOptions optionsAccessor ) : System

Method Details

GetTransport() public méthode

Gets the specified transport for the specified HttpContext.
public GetTransport ( HttpContext context ) : ITransport
context HttpContext 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