mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-13 17:23:11 -05:00
20 lines
431 B
C#
20 lines
431 B
C#
using System.Collections.Generic;
|
|
using Microsoft.AspNet.SignalR;
|
|
using WeatherService.Devices;
|
|
using WeatherService.Remote;
|
|
|
|
namespace WeatherService.SignalR
|
|
{
|
|
public class WeatherHub : Hub
|
|
{
|
|
public List<DeviceBase> GetDevices()
|
|
{
|
|
var devices = WeatherServiceCommon.GetDevices();
|
|
|
|
//var json = JsonConvert.SerializeObject(devices);
|
|
|
|
return devices;
|
|
}
|
|
}
|
|
}
|