StyleCop clean.
[dotnetoauth.git] / src / DotNetOpenAuth / Messaging / IMessageWithEvents.cs
blob51e00fccc1ba9ed263dfb446f6eb7f7515c1d87f
1 //-----------------------------------------------------------------------
2 // <copyright file="IMessageWithEvents.cs" company="Andrew Arnott">
3 // Copyright (c) Andrew Arnott. All rights reserved.
4 // </copyright>
5 //-----------------------------------------------------------------------
7 namespace DotNetOpenAuth.Messaging {
8 /// <summary>
9 /// An interface that messages wishing to perform custom serialization/deserialization
10 /// may implement to be notified of <see cref="Channel"/> events.
11 /// </summary>
12 internal interface IMessageWithEvents : IMessage {
13 /// <summary>
14 /// Called when the message is about to be transmitted,
15 /// before it passes through the channel binding elements.
16 /// </summary>
17 void OnSending();
19 /// <summary>
20 /// Called when the message has been received,
21 /// after it passes through the channel binding elements.
22 /// </summary>
23 void OnReceiving();