Add .NET Core 2.1 versions
This commit is contained in:
14
result/dotnet/Result/Hubs/ResultsHub.cs
Normal file
14
result/dotnet/Result/Hubs/ResultsHub.cs
Normal file
@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user