/// <summary> /// Called when the message is about to be transmitted, /// before it passes through the channel binding elements. /// </summary> void IMessageWithEvents.OnSending() { var fields = ((IMessage)this).ExtraData; fields.Clear(); AXUtilities.SerializeAttributes(fields, this.attributesProvided); }
/// <summary> /// Called when the message has been received, /// after it passes through the channel binding elements. /// </summary> void IMessageWithEvents.OnReceiving() { var extraData = ((IMessage)this).ExtraData; foreach (var att in AXUtilities.DeserializeAttributes(extraData)) { this.Attributes.Add(att); } }
/// <summary> /// Called when the message is about to be transmitted, /// before it passes through the channel binding elements. /// </summary> void IMessageWithEvents.OnSending() { var extraData = ((IMessage)this).ExtraData; AXUtilities.SerializeAttributes(extraData, this.attributesProvided); }