add skeleton NowPlayingHub

This commit is contained in:
andy 2021-10-31 19:55:00 +00:00
parent 5cbfad170a
commit 63538bc19a

View 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);
}
}
}