public Task PutRootWithRefAndNoMetaXML() => TestStatus(async(host, pipeline) =>
        {
            var root = new RootWithRefAndNoMeta
            {
                Something  = "else",
                RefToModel = new ComplexTypeNoMeta()
                {
                    ID = "myid"
                }
            };

            return(await new XmlClient(ClientDiagnostics, pipeline, host).PutComplexTypeRefNoMetaAsync(root));
        });
示例#2
0
 public virtual Response PutComplexTypeRefNoMeta(RootWithRefAndNoMeta model, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("XmlClient.PutComplexTypeRefNoMeta");
     scope.Start();
     try
     {
         return(RestClient.PutComplexTypeRefNoMeta(model, cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
示例#3
0
 public virtual async Task <Response> PutComplexTypeRefNoMetaAsync(RootWithRefAndNoMeta model, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("XmlClient.PutComplexTypeRefNoMeta");
     scope.Start();
     try
     {
         return(await RestClient.PutComplexTypeRefNoMetaAsync(model, cancellationToken).ConfigureAwait(false));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }