diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-26 06:40:37 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-26 06:40:37 -0700 |
commit | 61b4d2bc37a83ee2bedd35b9e6df6809bfafef4d (patch) | |
tree | d4cbecbe6c8ffebbefa8deaab86931c779896e7a /src/DotNetOpenAuth.Core/Messaging/Channel.cs | |
parent | 3883e15047a2dab9c4e5635c6b96fa37d0e71315 (diff) | |
download | DotNetOpenAuth-61b4d2bc37a83ee2bedd35b9e6df6809bfafef4d.zip DotNetOpenAuth-61b4d2bc37a83ee2bedd35b9e6df6809bfafef4d.tar.gz DotNetOpenAuth-61b4d2bc37a83ee2bedd35b9e6df6809bfafef4d.tar.bz2 |
Fixes two more test failures. 2 left.
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/Channel.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Messaging/Channel.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/Channel.cs b/src/DotNetOpenAuth.Core/Messaging/Channel.cs index b65e2e3..9414166 100644 --- a/src/DotNetOpenAuth.Core/Messaging/Channel.cs +++ b/src/DotNetOpenAuth.Core/Messaging/Channel.cs @@ -1181,6 +1181,10 @@ namespace DotNetOpenAuth.Messaging { messageAccessor.ToStringDeferred()); } + if (this.IncomingMessageFilter != null) { + this.IncomingMessageFilter(message); + } + MessageProtections appliedProtection = MessageProtections.None; foreach (IChannelBindingElement bindingElement in this.IncomingBindingElements) { Assumes.True(bindingElement.Channel != null); // CC bug: this.IncomingBindingElements ensures this... why must we assume it here? @@ -1231,10 +1235,6 @@ namespace DotNetOpenAuth.Messaging { // message deserializer did for us. It would be too late to do it here since // they might look initialized by the time we have an IProtocolMessage instance. message.EnsureValidMessage(); - - if (this.IncomingMessageFilter != null) { - this.IncomingMessageFilter(message); - } } /// <summary> |