cloudnet-compose/result/dotnet/Result/Hubs/ResultsHub.cs

15 lines
312 B
C#
Raw Normal View History

2018-09-21 20:23:31 +02:00
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);
}
}
}