Class MessageTypeMetadata
Pre-computed metadata for a message type to avoid runtime reflection.
public sealed class MessageTypeMetadata
- Inheritance
-
MessageTypeMetadata
- Inherited Members
- Extension Methods
Constructors
MessageTypeMetadata(Type)
Initializes a new instance of the MessageTypeMetadata class.
public MessageTypeMetadata(Type type)
Parameters
typeTypeThe message type to create metadata for.
Properties
AssemblyQualifiedName
Gets the assembly-qualified name of the type.
public string AssemblyQualifiedName { get; }
Property Value
- string
The assembly-qualified type name.
FullName
Gets the full name of the type.
public string FullName { get; }
Property Value
- string
The fully qualified type name.
IsCommand
Gets a value indicating whether this is a command/action message.
public bool IsCommand { get; }
Property Value
IsDocument
Gets a value indicating whether this is a document message.
public bool IsDocument { get; }
Property Value
IsEvent
Gets a value indicating whether this is an event message.
public bool IsEvent { get; }
Property Value
IsProjection
Gets a value indicating whether this is a projection message.
public bool IsProjection { get; }
Property Value
RoutingHint
Gets a routing hint for this message type.
public string RoutingHint { get; }
Property Value
- string
The routing hint determined from the message type characteristics.
SimpleName
Gets the simple name of the type.
public string SimpleName { get; }
Property Value
- string
The simple type name without namespace qualification.
Type
Gets the message type.
public Type Type { get; }
Property Value
- Type
The CLR type represented by this metadata instance.
TypeHashCode
Gets the pre-computed hash code for the underlying message type.
public int TypeHashCode { get; }
Property Value
- int
The hash code derived from the underlying message type.