Class JsonContent<T>
public class JsonContent<T> : HttpContent, IDisposable
Type Parameters
T
- Inheritance
-
JsonContent<T>
- Implements
- Inherited Members
Constructors
JsonContent(T, JsonTypeInfo<T>)
public JsonContent(T objToSerialize, JsonTypeInfo<T> jsonTypeInfo)
Parameters
objToSerialize
TjsonTypeInfo
JsonTypeInfo<T>
Methods
SerializeToStreamAsync(Stream, TransportContext?)
protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context)
Parameters
stream
Streamcontext
TransportContext
Returns
TryComputeLength(out long)
protected override bool TryComputeLength(out long length)
Parameters
length
long