add skeleton NowPlayingHub
This commit is contained in:
parent
5cbfad170a
commit
63538bc19a
21
Selector.Web/Hubs/NowPlayingHub.cs
Normal file
21
Selector.Web/Hubs/NowPlayingHub.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
using Selector.Cache;
|
||||
|
||||
namespace Selector.Web.Hubs
|
||||
{
|
||||
public interface INowPlayingHubClient
|
||||
{
|
||||
public Task OnNewPlaying(CurrentlyPlayingDTO context);
|
||||
}
|
||||
|
||||
public class NowPlayingHub: Hub<INowPlayingHubClient>
|
||||
{
|
||||
public Task SendNewPlaying(CurrentlyPlayingDTO context)
|
||||
{
|
||||
return Clients.All.OnNewPlaying(context);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user