Files
HomeMonitor/Hub/Service/Hubs/PowerHub.cs
2019-10-12 17:26:26 -04:00

19 lines
475 B
C#

using JetBrains.Annotations;
using Microsoft.AspNetCore.SignalR;
using System;
using System.Threading.Tasks;
namespace ChrisKaczor.HomeMonitor.Hub.Service.Hubs
{
[UsedImplicitly]
public class PowerHub : Microsoft.AspNetCore.SignalR.Hub
{
[UsedImplicitly]
public async Task SendLatestSample(string message)
{
Console.WriteLine(message);
await Clients.Others.SendAsync("LatestSample", message);
}
}
}