コード例 #1
0
 public virtual Response <object> ConstructionPreprocess(ConstructionPreprocessRequest body, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("RosettaClient.ConstructionPreprocess");
     scope.Start();
     try
     {
         return(RestClient.ConstructionPreprocess(body, cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
コード例 #2
0
 public virtual async Task <Response <object> > ConstructionPreprocessAsync(ConstructionPreprocessRequest body, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("RosettaClient.ConstructionPreprocess");
     scope.Start();
     try
     {
         return(await RestClient.ConstructionPreprocessAsync(body, cancellationToken).ConfigureAwait(false));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }