1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-20 21:55:03 -04:00
Files
Radarr/src/Microsoft.AspNet.SignalR.Core/Transports/ITransportManager.cs
T
2013-11-21 21:26:57 -08:00

26 lines
1.1 KiB
C#

// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information.
using Microsoft.AspNet.SignalR.Hosting;
namespace Microsoft.AspNet.SignalR.Transports
{
/// <summary>
/// Manages the transports for connections.
/// </summary>
public interface ITransportManager
{
/// <summary>
/// Gets the specified transport for the specified <see cref="HostContext"/>.
/// </summary>
/// <param name="hostContext">The <see cref="HostContext"/> for the current request.</param>
/// <returns>The <see cref="ITransport"/> for the specified <see cref="HostContext"/>.</returns>
ITransport GetTransport(HostContext hostContext);
/// <summary>
/// Determines whether the specified transport is supported.
/// </summary>
/// <param name="transportName">The name of the transport to test.</param>
/// <returns>True if the transport is supported, otherwise False.</returns>
bool SupportsTransport(string transportName);
}
}