summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Messaging/Channel.cs
diff options
context:
space:
mode:
authorDavid Christiansen <coding@davedoes.net>2015-01-04 23:33:54 +0000
committerDavid Christiansen <coding@davedoes.net>2015-01-04 23:33:54 +0000
commit5f8a168cc7a17fbc24442be4ae6b518d95a12647 (patch)
tree9f0efbcd13ff54446a34bd229dfd495eed882b06 /src/DotNetOpenAuth.Core/Messaging/Channel.cs
parent7574924b2b5c810b7c00328f04f506f28da3f2ec (diff)
downloadDotNetOpenAuth-5f8a168cc7a17fbc24442be4ae6b518d95a12647.zip
DotNetOpenAuth-5f8a168cc7a17fbc24442be4ae6b518d95a12647.tar.gz
DotNetOpenAuth-5f8a168cc7a17fbc24442be4ae6b518d95a12647.tar.bz2
Closes #356, Closes #357, Closes #358
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/Channel.cs')
-rw-r--r--src/DotNetOpenAuth.Core/Messaging/Channel.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/Channel.cs b/src/DotNetOpenAuth.Core/Messaging/Channel.cs
index cc61b25..b754035 100644
--- a/src/DotNetOpenAuth.Core/Messaging/Channel.cs
+++ b/src/DotNetOpenAuth.Core/Messaging/Channel.cs
@@ -27,6 +27,8 @@ namespace DotNetOpenAuth.Messaging {
using System.Threading.Tasks;
using System.Web;
using System.Xml;
+
+ using DotNetOpenAuth.Logging;
using DotNetOpenAuth.Messaging.Reflection;
using Validation;
@@ -395,7 +397,7 @@ namespace DotNetOpenAuth.Messaging {
public async Task<IDirectedProtocolMessage> ReadFromRequestAsync(HttpRequestMessage httpRequest, CancellationToken cancellationToken) {
Requires.NotNull(httpRequest, "httpRequest");
- if (Logger.Channel.IsInfoEnabled && httpRequest.RequestUri != null) {
+ if (Logger.Channel.IsInfoEnabled() && httpRequest.RequestUri != null) {
Logger.Channel.InfoFormat("Scanning incoming request for messages: {0}", httpRequest.RequestUri.AbsoluteUri);
}
IDirectedProtocolMessage requestMessage = await this.ReadFromRequestCoreAsync(httpRequest, cancellationToken);
@@ -1034,7 +1036,7 @@ namespace DotNetOpenAuth.Messaging {
this.OutgoingMessageFilter(message);
}
- if (Logger.Channel.IsInfoEnabled) {
+ if (Logger.Channel.IsInfoEnabled()) {
var directedMessage = message as IDirectedProtocolMessage;
string recipient = (directedMessage != null && directedMessage.Recipient != null) ? directedMessage.Recipient.AbsoluteUri : "<response>";
var messageAccessor = this.MessageDescriptions.GetAccessor(message);
@@ -1173,7 +1175,7 @@ namespace DotNetOpenAuth.Messaging {
protected virtual async Task ProcessIncomingMessageAsync(IProtocolMessage message, CancellationToken cancellationToken) {
Requires.NotNull(message, "message");
- if (Logger.Channel.IsInfoEnabled) {
+ if (Logger.Channel.IsInfoEnabled()) {
var messageAccessor = this.MessageDescriptions.GetAccessor(message, true);
Logger.Channel.InfoFormat(
"Processing incoming {0} ({1}) message:{2}{3}",
@@ -1223,7 +1225,7 @@ namespace DotNetOpenAuth.Messaging {
eventedMessage.OnReceiving();
}
- if (Logger.Channel.IsDebugEnabled) {
+ if (Logger.Channel.IsDebugEnabled()) {
var messageAccessor = this.MessageDescriptions.GetAccessor(message);
Logger.Channel.DebugFormat(
"After binding element processing, the received {0} ({1}) message is: {2}{3}",