29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Sockets;
|
|
|
|
namespace Microsoft.AspNetCore.SignalR
|
|
{
|
|
public abstract class HubLifetimeManager<THub>
|
|
{
|
|
public abstract Task OnConnectedAsync(ConnectionContext connection);
|
|
|
|
public abstract Task OnDisconnectedAsync(ConnectionContext connection);
|
|
|
|
public abstract Task InvokeAllAsync(string methodName, object[] args);
|
|
|
|
public abstract Task InvokeConnectionAsync(string connectionId, string methodName, object[] args);
|
|
|
|
public abstract Task InvokeGroupAsync(string groupName, string methodName, object[] args);
|
|
|
|
public abstract Task InvokeUserAsync(string userId, string methodName, object[] args);
|
|
|
|
public abstract Task AddGroupAsync(string connectionId, string groupName);
|
|
|
|
public abstract Task RemoveGroupAsync(string connnectionId, string groupName);
|
|
}
|
|
|
|
}
|