//----------------------------------------------------------------------- // // Copyright (c) Andrew Arnott. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOAuth.Messaging { using System; using System.Collections.Generic; using System.Linq; using System.Text; /// /// An interface that must be implemented by message transforms/validators in order /// to be included in the channel stack. /// internal interface IChannelBindingElement { /// /// Gets the protection offered (if any) by this binding element. /// MessageProtection Protection { get; } /// /// Prepares a message for sending based on the rules of this channel binding element. /// /// The message to prepare for sending. void PrepareMessageForSending(IProtocolMessage message); /// /// 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. /// /// The incoming message to process. void PrepareMessageForReceiving(IProtocolMessage message); } }