![]() |
Diffusion .NET Classic API - Core and Common
5.9.4
|
This is the default Message Comparator for Topic Messages. More...
Public Member Functions | |
override int | Compare (IMessage message1, IMessage message2) |
This overrides the base class method to provide processing specific to Topic Messages. More... | |
Additional Inherited Members |
This is the default Message Comparator for Topic Messages.
This may be extended to provide different comparison functionality and either used directly for message comparisons or set for a topic using TopicMessageComparators.
|
virtual |
This overrides the base class method to provide processing specific to Topic Messages.
If both message parameters represent the same object then 0 is returned.
If either message is not an instance of TopicLoadMessage then processing is passed to the superclass.
If both messages are instances of TopicLoadMessage then comparison is as follows:-
If both messages have the same topic then processing is delegated to the compareTopicMessage.
If the messages have different topics then -1 is returned if the topic name of message1 is lexically less than the topic name of message2 otherwise 1 is returned.
In normal circumstances this method should not be overridden.
message1 | |
message2 |
Reimplemented from PushTechnology.DiffusionCore.Messaging.MessageComparator.