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