Exemple #1
0
 public async Task PrepareRequestAsync(FhirTransactionContext context, CancellationToken cancellationToken)
 {
     using (LogPreparingRequestDelegate(_logger, _pipelineStepName))
     {
         try
         {
             await _fhirTransactionPipelineStep.PrepareRequestAsync(context, cancellationToken);
         }
         catch (OperationCanceledException) when(cancellationToken.IsCancellationRequested)
         {
             // Cancel requested.
             throw;
         }
         catch (Exception ex)
         {
             LogExceptionDelegate(_logger, ex);
             throw;
         }
     }
 }