public async Task NotifyLeadChanges() { var leadUpdate = await _leadManagementRepository.GetLeadUpdateAsync(CancellationToken.None); await _hub .Clients .All .SendAsync(nameof(NotifyLeadChanges), leadUpdate, CancellationToken.None); }
public async Task <LeadUpdate> Handle(Query request, CancellationToken cancellationToken) { var result = await _leadManagementRepository.GetLeadUpdateAsync(cancellationToken); return(result); }