25 lines
No EOL
717 B
C#
25 lines
No EOL
717 B
C#
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<string, WebSocket> Listeners { get; set; } = new ConcurrentDictionary<string, WebSocket>();
|
|
|
|
public CancellationTokenSource TokenSource { get; set; } = new CancellationTokenSource();
|
|
}
|
|
|
|
} |