protected override Task OnConnected(IRequest request, string connectionId) { string deviceID = request.QueryString["deviceId"].ToLowerInvariant(); TableStorageHelper tableStorage = new TableStorageHelper(); var devEntity = new DeviceEntity("device", deviceID) { ConnectionID = connectionId }; tableStorage.AddOfUpdateDevice(devEntity); return(Connection.Broadcast("Connection " + connectionId + " connected")); }