public async Task HandleAdminLiveMessage( AdminGroupLiveMessageModel adminGroupLiveMessageModel, GoLiveDto goLiveDto, Server dbContext, UserManager <IdentityUser> userManager, IHubCallerClients clients ) { await clients.Group(goLiveDto.UserTeamGroup) .SendAsync("RecieveCommentary", JsonConvert.SerializeObject(adminGroupLiveMessageModel) ); }
public async Task SendMessageAsync(string message, GoLiveDto golive) { var routeObj = JsonConvert.DeserializeObject <dynamic>(message); string toClient = routeObj.Type; if (toClient == Types.ADMINGROUPLIVEMESSAGE) { await _handlerServices.HandleAdminLiveMessage( _mapper.Map <AdminGroupLiveMessageModel>(toClient), golive, _dbContext, _userManager, Clients ); } }