Exemple #1
0
 public virtual Response <object> ConstructionParse(ConstructionParseRequest body, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("RosettaClient.ConstructionParse");
     scope.Start();
     try
     {
         return(RestClient.ConstructionParse(body, cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
Exemple #2
0
 public virtual async Task <Response <object> > ConstructionParseAsync(ConstructionParseRequest body, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("RosettaClient.ConstructionParse");
     scope.Start();
     try
     {
         return(await RestClient.ConstructionParseAsync(body, cancellationToken).ConfigureAwait(false));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }