diff options
Diffstat (limited to 'src/DotNetOAuth/Messaging/IChannelBindingElement.cs')
-rw-r--r-- | src/DotNetOAuth/Messaging/IChannelBindingElement.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/DotNetOAuth/Messaging/IChannelBindingElement.cs b/src/DotNetOAuth/Messaging/IChannelBindingElement.cs index b9f41f8..71127f4 100644 --- a/src/DotNetOAuth/Messaging/IChannelBindingElement.cs +++ b/src/DotNetOAuth/Messaging/IChannelBindingElement.cs @@ -24,13 +24,25 @@ namespace DotNetOAuth.Messaging { /// Prepares a message for sending based on the rules of this channel binding element.
/// </summary>
/// <param name="message">The message to prepare for sending.</param>
- void PrepareMessageForSending(IProtocolMessage message);
+ /// <returns>
+ /// True if the <paramref name="message"/> applied to this binding element
+ /// and the operation was successful. False otherwise.
+ /// </returns>
+ bool PrepareMessageForSending(IProtocolMessage message);
/// <summary>
/// Performs any transformation on an incoming message that may be necessary and/or
/// validates an incoming message based on the rules of this channel binding element.
/// </summary>
/// <param name="message">The incoming message to process.</param>
- void PrepareMessageForReceiving(IProtocolMessage message);
+ /// <returns>
+ /// True if the <paramref name="message"/> applied to this binding element
+ /// and the operation was successful. False if the operation did not apply to this message.
+ /// </returns>
+ /// <exception cref="ProtocolException">
+ /// Thrown when the binding element rules indicate that this message is invalid and should
+ /// NOT be processed.
+ /// </exception>
+ bool PrepareMessageForReceiving(IProtocolMessage message);
}
}
|