diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-09-01 16:15:36 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-01 16:16:29 -0700 |
commit | fe89b650595d828f44270ee1226d72e945f7260c (patch) | |
tree | 7994fbbb23abc7ff0751ac9bb0d8cdb93bc32f6b /src/DotNetOAuth/IProtocolMessage.cs | |
parent | 4e83c2d321f57cac5e5605097faf15bf1b46efa5 (diff) | |
download | DotNetOpenAuth-fe89b650595d828f44270ee1226d72e945f7260c.zip DotNetOpenAuth-fe89b650595d828f44270ee1226d72e945f7260c.tar.gz DotNetOpenAuth-fe89b650595d828f44270ee1226d72e945f7260c.tar.bz2 |
Moved messaging infrastructure to its own namespace.
Diffstat (limited to 'src/DotNetOAuth/IProtocolMessage.cs')
-rw-r--r-- | src/DotNetOAuth/IProtocolMessage.cs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/DotNetOAuth/IProtocolMessage.cs b/src/DotNetOAuth/IProtocolMessage.cs deleted file mode 100644 index 76512a4..0000000 --- a/src/DotNetOAuth/IProtocolMessage.cs +++ /dev/null @@ -1,41 +0,0 @@ -//-----------------------------------------------------------------------
-// <copyright file="IProtocolMessage.cs" company="Andrew Arnott">
-// Copyright (c) Andrew Arnott. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace DotNetOAuth {
- using System;
- using System.Collections.Generic;
- using System.Text;
-
- /// <summary>
- /// The interface that classes must implement to be serialized/deserialized
- /// as OAuth messages.
- /// </summary>
- internal interface IProtocolMessage {
- /// <summary>
- /// Gets the version of the protocol this message is prepared to implement.
- /// </summary>
- Protocol Protocol { get; }
-
- /// <summary>
- /// Gets whether this is a direct or indirect message.
- /// </summary>
- MessageTransport Transport { get; }
-
- /// <summary>
- /// Checks the message state for conformity to the protocol specification
- /// and throws an exception if the message is invalid.
- /// </summary>
- /// <remarks>
- /// <para>Some messages have required fields, or combinations of fields that must relate to each other
- /// in specialized ways. After deserializing a message, this method checks the state of the
- /// message to see if it conforms to the protocol.</para>
- /// <para>Note that this property should <i>not</i> check signatures or perform any state checks
- /// outside this scope of this particular message.</para>
- /// </remarks>
- /// <exception cref="ProtocolException">Thrown if the message is invalid.</exception>
- void EnsureValidMessage();
- }
-}
|