Show / Hide Table of Contents

Class MessageExtensions

Extension methods for IMessage.

Inheritance
System.Object
MessageExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Messaging
Assembly: Kephas.Messaging.dll
Syntax
public static class MessageExtensions

Methods

| Improve this Doc View Source

GetContent(IMessage)

Gets the content of the message.

Declaration
public static object GetContent(this IMessage message)
Parameters
Type Name Description
IMessage message

The message to act on.

Returns
Type Description
System.Object

The message content.

Remarks

In case of a message envelope, it returns the contained message, otherwise the message itself.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX