Exemplo n.º 1
0
 public async Task <EBFormatsResult> GetItemsAsync(string sessionKey)
 => await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token => {
     var result = (await ebFormatProcessor.GetAsync(token)).ToList();
     return(new EBFormatsResult {
         ProcessResult = new ProcessResult {
             Result = true
         },
         EBFileFormats = result,
     });
 }, logger);
Exemplo n.º 2
0
 public async Task <ActionResult <IEnumerable <EBFormat> > > GetItems(CancellationToken token)
 => (await ebFormatProcessor.GetAsync(token)).ToArray();