Show / Hide Table of Contents

Class HttpClientExtensions

Extension methods to aid deserialization

Inheritance
Object
HttpClientExtensions
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: DynamicRestProxy.PortableHttpClient
Assembly: DynamicRestProxy.NetStandard.dll
Syntax
public static class HttpClientExtensions

Methods

| Improve this Doc View Source

Deserialize<T>(HttpResponseMessage, JsonSerializerSettings)

Helper method to deserialize content in a number of diferent ways

Declaration
public static Task<T> Deserialize<T>(this HttpResponseMessage response, JsonSerializerSettings settings)
Parameters
Type Name Description
HttpResponseMessage response

An HttpResponseMessage to deserialize

Newtonsoft.Json.JsonSerializerSettings settings

Json settings to control deserialization

Returns
Type Description
System.Threading.Tasks.Task<T>

content deserialized to type T

Type Parameters
Name Description
T

The type to deserialize to Stream String System.Byte[] array ExpandoObject when T is dynamic or other POCO types

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX