Ejemplo n.º 1
0
 public virtual Response <object> EventsBlocks(EventsBlocksRequest body, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("RosettaClient.EventsBlocks");
     scope.Start();
     try
     {
         return(RestClient.EventsBlocks(body, cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
Ejemplo n.º 2
0
 public virtual async Task <Response <object> > EventsBlocksAsync(EventsBlocksRequest body, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("RosettaClient.EventsBlocks");
     scope.Start();
     try
     {
         return(await RestClient.EventsBlocksAsync(body, cancellationToken).ConfigureAwait(false));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }