C# Class SignalR.Transports.TransportManager

ファイルを表示 Open project: robink-teleopti/SignalR

Public Methods

Method Description
GetTransport ( HostContext context ) : 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.

TransportManager ( IDependencyResolver resolver ) : System

Initializes a new instance of TransportManager class.

Method Details

GetTransport() public method

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

TransportManager() public method

Initializes a new instance of TransportManager class.
public TransportManager ( IDependencyResolver resolver ) : System
resolver IDependencyResolver The default .
return System