C# Класс Microsoft.AspNet.SignalR.Transports.TransportManager

The default ITransportManager implementation.
Наследование: ITransportManager
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
TransportManager ( IDependencyResolver resolver ) : System

Описание методов

GetTransport() публичный Метод

Gets the specified transport for the specified HostContext.
public GetTransport ( HostContext hostContext ) : ITransport
hostContext Microsoft.AspNet.SignalR.Hosting.HostContext The for the current request.
Результат ITransport

Register() публичный Метод

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.
Результат void

Remove() публичный Метод

Removes a transport from the list of supported transports.
public Remove ( string transportName ) : void
transportName string The specified transport.
Результат void

SupportsTransport() публичный Метод

Determines whether the specified transport is supported.
public SupportsTransport ( string transportName ) : bool
transportName string The name of the transport to test.
Результат bool