mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-14 01:25:43 -05:00
More cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user