Doc/Codecs/MediaTypeReader

Implementing IMediaTypeReader

Implement IMediaTypeReader when you wish to implement one half of a codec (the "decoder" part) which reads from an incoming HTTP POST or PUT. This means implementing two things:

public object ReadFrom(IHttpEntity request, IType destinationType, string paramName)

Read from the IHttpEntity.Stream to hydrate the object.

See also