diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2011-07-01 16:49:44 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2011-07-01 16:49:44 -0700 |
commit | b6f7a18b949acb4346754ae47fb07424076a3cd0 (patch) | |
tree | 4c23cb2b8174f3288cb0b787cff4c6ac432c6bef /src/DotNetOpenAuth.Messaging/Messaging/IMessageWithEvents.cs | |
parent | f16525005555b86151b7a1c741aa29550635108a (diff) | |
download | DotNetOpenAuth-b6f7a18b949acb4346754ae47fb07424076a3cd0.zip DotNetOpenAuth-b6f7a18b949acb4346754ae47fb07424076a3cd0.tar.gz DotNetOpenAuth-b6f7a18b949acb4346754ae47fb07424076a3cd0.tar.bz2 |
First pass at dividing DotNetOpenAuth features into separate assemblies.
Nothing compiles at this point.
Diffstat (limited to 'src/DotNetOpenAuth.Messaging/Messaging/IMessageWithEvents.cs')
-rw-r--r-- | src/DotNetOpenAuth.Messaging/Messaging/IMessageWithEvents.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Messaging/Messaging/IMessageWithEvents.cs b/src/DotNetOpenAuth.Messaging/Messaging/IMessageWithEvents.cs new file mode 100644 index 0000000..51e00fc --- /dev/null +++ b/src/DotNetOpenAuth.Messaging/Messaging/IMessageWithEvents.cs @@ -0,0 +1,25 @@ +//----------------------------------------------------------------------- +// <copyright file="IMessageWithEvents.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace DotNetOpenAuth.Messaging { + /// <summary> + /// An interface that messages wishing to perform custom serialization/deserialization + /// may implement to be notified of <see cref="Channel"/> events. + /// </summary> + internal interface IMessageWithEvents : IMessage { + /// <summary> + /// Called when the message is about to be transmitted, + /// before it passes through the channel binding elements. + /// </summary> + void OnSending(); + + /// <summary> + /// Called when the message has been received, + /// after it passes through the channel binding elements. + /// </summary> + void OnReceiving(); + } +} |