yavsc/src/Yavsc/ViewModels/Streaming/LiveCastMeta.cs

25 lines
717 B
C#
Raw Normal View History

2018-11-28 13:56:35 +00:00
using System.Collections.Concurrent;
using System.Net.WebSockets;
2019-06-27 10:30:28 +01:00
using System.Threading;
2018-11-28 13:56:35 +00:00
namespace Yavsc.ViewModels.Streaming
{
public class LiveCastClient {
public string UserName { get; set; }
public WebSocket Socket { get; set; }
}
2019-01-10 12:30:56 +00:00
public class LiveEntryViewModel {
public string UserName { get; set; }
public string FlowId { get; set; }
}
2019-06-27 10:30:28 +01:00
public class LiveCastHandler
2018-11-28 13:56:35 +00:00
{
public WebSocket Socket { get; set; }
public ConcurrentDictionary<string, WebSocket> Listeners { get; set; } = new ConcurrentDictionary<string, WebSocket>();
2019-06-27 10:30:28 +01:00
public CancellationTokenSource TokenSource { get; set; } = new CancellationTokenSource();
2018-11-28 13:56:35 +00:00
}
2019-01-15 16:02:35 +00:00
2018-11-28 13:56:35 +00:00
}