yavsc/src/Server/Interfaces/ILiveProcessor.cs

26 lines
774 B
C#
Raw Normal View History

2019-06-27 10:30:28 +01:00
using System.Collections.Concurrent;
using System.Threading.Tasks;
2023-03-19 17:57:55 +00:00
using Microsoft.AspNetCore.Http;
2020-10-09 19:35:39 +01:00
using Yavsc.Models;
2019-06-27 10:30:28 +01:00
using Yavsc.ViewModels.Streaming;
namespace Yavsc.Services
{
public interface ILiveProcessor {
/// <summary>
/// instance keeping reference on
/// all collections of casting and listenning websockets
/// </summary>
/// <value></value>
ConcurrentDictionary<string, LiveCastHandler> Casters { get; }
/// <summary>
/// Try and accept websocket from aspnet http context
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
2020-10-09 19:35:39 +01:00
Task<bool> AcceptStream (HttpContext context, ApplicationUser user, string destDir, string fileName);
2019-06-27 10:30:28 +01:00
}
2020-10-09 19:35:39 +01:00
}