Squirrowse/Squirrowse.Service/Hubs/IStreamManager.cs
danielgrabowski 327faae0bc AddSaving
2019-11-12 16:47:20 +01:00

19 lines
614 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
using Squirrowse.Core.Models;
namespace Squirrowse.Service.Hubs
{
public interface IStreamManager
{
Task AddUser(string connectionId, string agentName, ConnectionType type);
Task RemoveUserbyConnectionId(string connectionId);
Task RemoveUserByUserName(string agentName);
IEnumerable<User> getServerSideUsers();
bool CheckUser(string agentName);
IEnumerable<User> getClientSideUsers();
IEnumerable<User> getAllUsers();
Task SaveData(IAsyncEnumerable<byte[]> stream);
}
}