public async Task NotifyLeadChanges()
        {
            var leadUpdate = await _leadManagementRepository.GetLeadUpdateAsync(CancellationToken.None);

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

                return(result);
            }