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; } }
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; } }