Table of Contents

Class JsonContent<T>

Namespace
NetCord.Rest
Assembly
NetCord.dll
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 T
jsonTypeInfo JsonTypeInfo<T>

Methods

SerializeToStreamAsync(Stream, TransportContext?)

protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context)

Parameters

stream Stream
context TransportContext

Returns

Task

TryComputeLength(out long)

protected override bool TryComputeLength(out long length)

Parameters

length long

Returns

bool