C# Class NServiceBus.Unicast.Subscriptions.MessageType

Representation of a message type that clients can be subscribed to.
Show file Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
Equals ( MessageType other ) : bool

Equality, only major version is used.

Equals ( object obj ) : bool

Equality, only Type is same.

GetHashCode ( ) : int

Gets Hash Code.

MessageType ( Type type ) : System

Initializes the message type from the given type.

MessageType ( string messageTypeString ) : System

Initializes the message type from the given string.

MessageType ( string typeName, System.Version version ) : System

Initializes the message type from the given string.

MessageType ( string typeName, string versionString ) : System

Initializes the message type from the given string.

ToString ( ) : string

Overridden to append Version along with Type Name.

operator ( ) : bool

Equality.

Private Methods

Method Description
ParseVersion ( string versionString ) : System.Version

Method Details

Equals() public method

Equality, only major version is used.
public Equals ( MessageType other ) : bool
other MessageType
return bool

Equals() public method

Equality, only Type is same.
public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

Gets Hash Code.
public GetHashCode ( ) : int
return int

MessageType() public method

Initializes the message type from the given type.
public MessageType ( Type type ) : System
type System.Type
return System

MessageType() public method

Initializes the message type from the given string.
public MessageType ( string messageTypeString ) : System
messageTypeString string
return System

MessageType() public method

Initializes the message type from the given string.
public MessageType ( string typeName, System.Version version ) : System
typeName string
version System.Version
return System

MessageType() public method

Initializes the message type from the given string.
public MessageType ( string typeName, string versionString ) : System
typeName string
versionString string
return System

ToString() public method

Overridden to append Version along with Type Name.
public ToString ( ) : string
return string

operator() public static method

Equality.
public static operator ( ) : bool
return bool