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