Show / Hide Table of Contents

Class Extensions

Provides extension methods for message serialization.

Inheritance
System.Object
Extensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Amqp
Assembly: Amqp.Net.dll
Syntax
public static class Extensions

Methods

GetBody<T>(Message)

Gets an object of type T from the message body.

Declaration
public static T GetBody<T>(this Message message)
Parameters
Type Name Description
Message message

The message from which the body is deserialized.

Returns
Type Description
T

An object of type T.

Type Parameters
Name Description
T

The object type.

GetBody<T>(Message, AmqpSerializer)

Gets an object of type T from the message body using the provided serializer.

Declaration
public static T GetBody<T>(this Message message, AmqpSerializer serializer)
Parameters
Type Name Description
Message message

The message from which the body is deserialized.

AmqpSerializer serializer

The serializer to deserialize the object.

Returns
Type Description
T

An object of type T.

Type Parameters
Name Description
T

The object type.

Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX