public async Task <ActionResult <IEnumerable <MatchingHeader> > > SearchMatchedDataR(CollationSearch option) => await hubContext.DoAsync(option.ConnectionId, async (notifier, token) => { var result = (await matchingProcessor.SearchMatchedDataAsync(option, token)).ToArray(); notifier?.UpdateState(); return(result); });
public async Task<MatchingHeadersResult> SearchMatchedDataAsync(string SessionKey, CollationSearch CollationSearch, string connectionId) => await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var notifier = hubContext.CreateNotifier(connectionId); var result = (await matchingProcessor.SearchMatchedDataAsync(CollationSearch, token)).ToList(); notifier?.UpdateState(); return new MatchingHeadersResult { ProcessResult = new ProcessResult { Result = true }, MatchingHeaders = result, }; }, logger, connectionId);