public virtual Response <object> ConstructionParse(ConstructionParseRequest body, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("RosettaClient.ConstructionParse"); scope.Start(); try { return(RestClient.ConstructionParse(body, cancellationToken)); } catch (Exception e) { scope.Failed(e); throw; } }
public virtual async Task <Response <object> > ConstructionParseAsync(ConstructionParseRequest body, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("RosettaClient.ConstructionParse"); scope.Start(); try { return(await RestClient.ConstructionParseAsync(body, cancellationToken).ConfigureAwait(false)); } catch (Exception e) { scope.Failed(e); throw; } }