Ejemplo n.º 1
0
 public async Task <IContent> GetTempContent(string token, CancellationToken cancellationToken)
 {
     try
     {
         return((await contentStorage.Get(token, options.ContentCategory, cancellationToken)).Content);
     }
     catch (ContentNotFoundException e)
     {
         throw new TempContentRemovedException("Temp content not found or has been removed by timeout", e);
     }
 }