public Task PutRootWithRefAndMetaXML() => TestStatus(async(host, pipeline) => { var root = new RootWithRefAndMeta() { Something = "else", RefToModel = new ComplexTypeWithMeta() { ID = "myid" } }; return(await new XmlClient(ClientDiagnostics, pipeline, host).PutComplexTypeRefWithMetaAsync(root)); });
public virtual Response PutComplexTypeRefWithMeta(RootWithRefAndMeta model, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("XmlClient.PutComplexTypeRefWithMeta"); scope.Start(); try { return(RestClient.PutComplexTypeRefWithMeta(model, cancellationToken)); } catch (Exception e) { scope.Failed(e); throw; } }
public virtual async Task <Response> PutComplexTypeRefWithMetaAsync(RootWithRefAndMeta model, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("XmlClient.PutComplexTypeRefWithMeta"); scope.Start(); try { return(await RestClient.PutComplexTypeRefWithMetaAsync(model, cancellationToken).ConfigureAwait(false)); } catch (Exception e) { scope.Failed(e); throw; } }