public void OnSportUpdate(ISportDetails sport) { if (sport == null || string.IsNullOrEmpty(sport.Name)) return; try { var group = _hub.Clients.Group(SupervisorStreamingConstants.SPORT_GROUP_PREFIX + sport.Name); if (group != null) group.OnSportUpdate(sport); } catch(Exception e) { _logger.Error(string.Format("Error while sending update on sport={0}", sport.Name), e); } }
public void OnSportUpdate(ISportDetails sport) { if (sport == null || string.IsNullOrEmpty(sport.Name)) { return; } try { var group = _hub.Clients.Group(SupervisorStreamingConstants.SPORT_GROUP_PREFIX + sport.Name); if (group != null) { group.OnSportUpdate(sport); } } catch (Exception e) { _logger.Error(string.Format("Error while sending update on sport={0}", sport.Name), e); } }