More cleanup

This commit is contained in:
2015-01-16 18:44:29 -05:00
parent 7413a23886
commit f4f1c3c784
17 changed files with 277 additions and 464 deletions

View File

@@ -1,13 +1,19 @@
using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Hubs;
using System.Collections.Generic;
using Microsoft.AspNet.SignalR;
using WeatherService.Devices;
using WeatherService.Remote;
namespace WeatherService.SignalR
{
public class WeatherHub : Hub
{
public void Send(string message)
public List<DeviceBase> GetDevices()
{
Clients.Others.addMessage(message);
var devices = WeatherServiceCommon.GetDevices();
//var json = JsonConvert.SerializeObject(devices);
return devices;
}
}
}