Пример #1
0
        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));
        });
Пример #2
0
 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;
     }
 }
Пример #3
0
 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;
     }
 }