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

The default ITransportManager implementation.
Inheritance: ITransportManager
Show file Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript

Public Methods

Method 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

Method Description
TransportManager ( IServiceProvider serviceProvider, IOptions optionsAccessor ) : System

Method Details

GetTransport() public method

Gets the specified transport for the specified HttpContext.
public GetTransport ( HttpContext context ) : ITransport
context HttpContext The for the current request.
return ITransport

Register() public method

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.
return void

Remove() public method

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

SupportsTransport() public method

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