예제 #1
0
 public async Task <MatchingHistorysResult> GetAsync(string SessionKey, MatchingHistorySearch MatchingHistorySearch, string connectionId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var notifier = hubContext.CreateNotifier(connectionId);
         var result = (await matchingHistorySearchProcessor.GetAsync(MatchingHistorySearch, token, notifier)).ToList();
         return new MatchingHistorysResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             MatchingHistorys = result,
         };
     }, logger, connectionId));
 }
예제 #2
0
 public async Task <ActionResult <IEnumerable <MatchingHistory> > > GetR(MatchingHistorySearch option)
 => await hubContext.DoAsync(option.ConnectionId, async (notifier, token)
                             => (await matchingHistorySearchProcessor.GetAsync(option, token, notifier)).ToArray());