Squirrowse/Squirrowse.Service/Hubs/IStreamManager.cs

19 lines
614 B
C#
Raw Normal View History

2019-11-06 17:02:06 +01:00
using System.Collections.Generic;
using System.Threading.Tasks;
using Squirrowse.Core.Models;
2019-11-05 17:00:36 +01:00
namespace Squirrowse.Service.Hubs
{
public interface IStreamManager
{
2019-11-07 11:52:27 +01:00
Task AddUser(string connectionId, string agentName, ConnectionType type);
2019-11-06 13:47:00 +01:00
Task RemoveUserbyConnectionId(string connectionId);
Task RemoveUserByUserName(string agentName);
2019-11-07 11:52:27 +01:00
IEnumerable<User> getServerSideUsers();
2019-11-06 13:47:00 +01:00
bool CheckUser(string agentName);
2019-11-06 19:17:06 +01:00
IEnumerable<User> getClientSideUsers();
IEnumerable<User> getAllUsers();
2019-11-12 16:47:20 +01:00
Task SaveData(IAsyncEnumerable<byte[]> stream);
2019-11-05 17:00:36 +01:00
}
2019-11-06 13:47:00 +01:00
}