diff options
author | David Christiansen <coding@davedoes.net> | 2015-01-04 23:33:54 +0000 |
---|---|---|
committer | David Christiansen <coding@davedoes.net> | 2015-01-04 23:33:54 +0000 |
commit | 5f8a168cc7a17fbc24442be4ae6b518d95a12647 (patch) | |
tree | 9f0efbcd13ff54446a34bd229dfd495eed882b06 /src/DotNetOpenAuth.Core/Messaging/StandardMessageFactory.cs | |
parent | 7574924b2b5c810b7c00328f04f506f28da3f2ec (diff) | |
download | DotNetOpenAuth-5f8a168cc7a17fbc24442be4ae6b518d95a12647.zip DotNetOpenAuth-5f8a168cc7a17fbc24442be4ae6b518d95a12647.tar.gz DotNetOpenAuth-5f8a168cc7a17fbc24442be4ae6b518d95a12647.tar.bz2 |
Closes #356, Closes #357, Closes #358
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/StandardMessageFactory.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Messaging/StandardMessageFactory.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/StandardMessageFactory.cs b/src/DotNetOpenAuth.Core/Messaging/StandardMessageFactory.cs index fd35e5f..006c798 100644 --- a/src/DotNetOpenAuth.Core/Messaging/StandardMessageFactory.cs +++ b/src/DotNetOpenAuth.Core/Messaging/StandardMessageFactory.cs @@ -10,6 +10,8 @@ namespace DotNetOpenAuth.Messaging { using System.Linq; using System.Reflection; using System.Text; + + using DotNetOpenAuth.Logging; using DotNetOpenAuth.Messaging.Reflection; using Validation; @@ -149,7 +151,7 @@ namespace DotNetOpenAuth.Messaging { .CacheGeneratedResults(); var match = matches.FirstOrDefault(); if (match != null) { - if (Logger.Messaging.IsWarnEnabled && matches.Count() > 1) { + if (Logger.Messaging.IsWarnEnabled() && matches.Count() > 1) { Logger.Messaging.WarnFormat( "Multiple message types seemed to fit the incoming data: {0}", matches.ToStringDeferred()); @@ -186,7 +188,7 @@ namespace DotNetOpenAuth.Messaging { select message).CacheGeneratedResults(); var match = matches.FirstOrDefault(); if (match != null) { - if (Logger.Messaging.IsWarnEnabled && matches.Count() > 1) { + if (Logger.Messaging.IsWarnEnabled() && matches.Count() > 1) { Logger.Messaging.WarnFormat( "Multiple message types seemed to fit the incoming data: {0}", matches.ToStringDeferred()); |