O'Reilly logo

Getting Started with the Internet of Things by Cuno Pfister

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Representations

Delegate Serializer

The delegate type Serializer determines the parameters (context and content) and result (void) a method must have so that it can be used for converting a C# object (content) to the response message body in a context object (context):

public delegate void Serializer(RequestHandlerContext context,
    object content);

Delegate Deserializer

The delegate type Deserializer determines the parameters (context and content) and result (bool) a method must have so that it can be used for converting a request message body in a context object (context) to a C# object (content). The Boolean result indicates whether the conversion was successful:

public delegate bool Deserializer(RequestHandlerContext context, out object content); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required