mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
imported signalr 1.1.3 into NzbDrone.
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.AspNet.SignalR.Hubs
|
||||
{
|
||||
public interface IHub : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a <see cref="HubCallerContext"/>. Which contains information about the calling client.
|
||||
/// </summary>
|
||||
HubCallerContext Context { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a dynamic object that represents all clients connected to this hub (not hub instance).
|
||||
/// </summary>
|
||||
HubConnectionContext Clients { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="IGroupManager"/> the hub instance.
|
||||
/// </summary>
|
||||
IGroupManager Groups { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Called when a new connection is made to the <see cref="IHub"/>.
|
||||
/// </summary>
|
||||
Task OnConnected();
|
||||
|
||||
/// <summary>
|
||||
/// Called when a connection reconnects to the <see cref="IHub"/> after a timeout.
|
||||
/// </summary>
|
||||
Task OnReconnected();
|
||||
|
||||
/// <summary>
|
||||
/// Called when a connection is disconnected from the <see cref="IHub"/>.
|
||||
/// </summary>
|
||||
Task OnDisconnected();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user