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 MessageExtensionsMethods
| Improve this Doc View SourceGetContent(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.