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