Skip to content

Serialization deserialization

Arxisos edited this page Feb 28, 2012 · 5 revisions

Serialization and deserialization

To skip the serialization of the request DTO, you can add the IRequiresRequestStream interface to directly retrieve the stream without populating the request DTO.

//Request DTO
public class Hello : IRequiresRequestStream
{
    /// <summary>
    /// The raw Http Request Input Stream
    /// </summary>
    Stream RequestStream { get; set; }
}

Clone this wiki locally