Class XmlSerializableExtensions
Helpers for the XML serialization of HTTP responses.
Inheritance
System.Object
XmlSerializableExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DocuWare.Services.Http.Client
Assembly: DocuWare.RestClient.dll
Syntax
public static class XmlSerializableExtensions
Methods
ReadAsXmlSerializable<T>(HttpContent)
Reads the message body as XML.
Declaration
public static Task<T> ReadAsXmlSerializable<T>(this HttpContent content)
where T : class, new()
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpContent | content | The content. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<T> | The deserialized response. |
Type Parameters
Name | Description |
---|---|
T |
ReadAsXmlSerializableAsync<T>(HttpResponseMessage)
Reads the message body as XML.
Declaration
public static Task<T> ReadAsXmlSerializableAsync<T>(this HttpResponseMessage httpResponseMessage)
where T : class, new()
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpResponseMessage | httpResponseMessage | The HTTP response message. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<T> | The deserialized response. |
Type Parameters
Name | Description |
---|---|
T |