Refactor code structure for improved readability and maintainability
This commit is contained in:
parent
b47641feaa
commit
4f488bae45
78 changed files with 3309 additions and 1570 deletions
20
dotnet/src/TwitchArchive.Web/Hubs/ProcessOutputHub.cs
Normal file
20
dotnet/src/TwitchArchive.Web/Hubs/ProcessOutputHub.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using Microsoft.AspNetCore.SignalR;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TwitchArchive.Web.Hubs
|
||||
{
|
||||
public class ProcessOutputHub : Hub
|
||||
{
|
||||
// methods are server-driven; clients listen on ReceiveLine
|
||||
|
||||
public Task JoinStreamerGroup(string streamer)
|
||||
{
|
||||
return Groups.AddToGroupAsync(Context.ConnectionId, streamer);
|
||||
}
|
||||
|
||||
public Task LeaveStreamerGroup(string streamer)
|
||||
{
|
||||
return Groups.RemoveFromGroupAsync(Context.ConnectionId, streamer);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue