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