using System.Collections.Concurrent; using System.Net.WebSockets; using System.Threading; namespace Yavsc.ViewModels.Streaming { public class LiveCastClient { public string UserName { get; set; } public WebSocket Socket { get; set; } } public class LiveEntryViewModel { public string UserName { get; set; } public string FlowId { get; set; } } public class LiveCastHandler { public WebSocket Socket { get; set; } public ConcurrentDictionary Listeners { get; set; } = new ConcurrentDictionary(); public CancellationTokenSource TokenSource { get; set; } = new CancellationTokenSource(); } }