Class MessageExtensions
Useful extension methods for Message.
Inherited Members
Namespace: IRM.Messaging
Assembly: IRM.dll
Syntax
public static class MessageExtensions
Methods
GetEventTypesToInvalidate(IEvent)
Gets a list of delayed event types that should be removed from the ATOM feed because of this event.
Declaration
public static IEnumerable<Type> GetEventTypesToInvalidate(this IEvent event)
Parameters
IEvent
event
The event to check for InvalidateDelayedEventAttribute. |
Returns
IEnumerable<System.Type>
A list of delayed event types that should be removed; or null if non should be removed. |
GetEventTypesToInvalidate(Type)
Gets a collection of delayed event types that should be removed from the ATOM feed because of this event.
Declaration
public static IEnumerable<Type> GetEventTypesToInvalidate(this Type type)
Parameters
System.Type
type
The type of event to check for InvalidateDelayedEventAttribute. |
Returns
IEnumerable<System.Type>
A list of delayed event types that should be removed; or null if non should be removed. |
IsOnlyForInternalOwner(Type)
Gets if a System.Type of message is only for internal owner or not.
Declaration
public static bool IsOnlyForInternalOwner(this Type type)
Parameters
System.Type
type
The System.Type of message to check if only internal owner is allowed. |
Returns
Boolean
true if the System.Type of message is only for internal owner; otherwise false. |
IsOnlyForInternalOwner<T>(T)
Gets if a Message is only for internal owner or not.
Declaration
public static bool IsOnlyForInternalOwner<T>(this T message)
where T : Message
Parameters
T
message
The Message to check if only internal owner is allowed. |
Returns
Boolean
true if the Message is only for internal owner; otherwise false. |
Type Parameters
T
The type of Message. |