User Tools

Site Tools


valuechangedmessage

ValueChangedMessage

ValueChangedMessage is a built-in BaseMessage used when a Message Broker broadcast represents a change from one value to another.

It carries both the previous and new value, making the intent of the payload explicit to subscribers. Although the same data could be represented using ValueMessage<T1, T2>, ValueChangedMessage should be preferred for value-change notifications because it clearly identifies which value represents the previous state and which represents the new state.

Constructor

Constructor ValueChangedMessage(T previousValue, T newValue)
Description Creates a message representing a change from specified previous value to specified new value.

Properties

Property T PreviousValue
Description Returns the value before the change occurred.
Property T NewValue
Description Returns the value after the change occurred.
valuechangedmessage.txt · Last modified: by diviner

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki