15 lines
312 B
C#
15 lines
312 B
C#
|
using System.Threading.Tasks;
|
|||
|
using Microsoft.AspNetCore.SignalR;
|
|||
|
using Result.Models;
|
|||
|
|
|||
|
namespace Result.Hubs
|
|||
|
{
|
|||
|
public class ResultsHub : Hub
|
|||
|
{
|
|||
|
public async Task UpdateResults(ResultsModel results)
|
|||
|
{
|
|||
|
await Clients.All.SendAsync("UpdateResults", results);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|