diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-09-25 16:57:17 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-25 16:57:17 -0700 |
commit | 50e34bfe7224576e901efa6748598d31c36df3a5 (patch) | |
tree | 4c9f820f54bb5578addbf064136f712dcf35c5c7 /src/DotNetOAuth/Messages/MessageBase.cs | |
parent | a9fb696c40441e06ef817d7e28bae74c6a6cb6e4 (diff) | |
download | DotNetOpenAuth-50e34bfe7224576e901efa6748598d31c36df3a5.zip DotNetOpenAuth-50e34bfe7224576e901efa6748598d31c36df3a5.tar.gz DotNetOpenAuth-50e34bfe7224576e901efa6748598d31c36df3a5.tar.bz2 |
Fixed lots of StyleCop issues and refacted Consumer/Service Provider a bit.
Diffstat (limited to 'src/DotNetOAuth/Messages/MessageBase.cs')
-rw-r--r-- | src/DotNetOAuth/Messages/MessageBase.cs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/DotNetOAuth/Messages/MessageBase.cs b/src/DotNetOAuth/Messages/MessageBase.cs index 12f8b77..91530be 100644 --- a/src/DotNetOAuth/Messages/MessageBase.cs +++ b/src/DotNetOAuth/Messages/MessageBase.cs @@ -7,12 +7,11 @@ namespace DotNetOAuth.Messages {
using System;
using System.Collections.Generic;
+ using System.Globalization;
+ using System.Text;
using DotNetOAuth.ChannelElements;
using DotNetOAuth.Messaging;
- using DotNetOAuth.Messaging.Bindings;
using DotNetOAuth.Messaging.Reflection;
- using System.Text;
- using System.Globalization;
/// <summary>
/// A base class for all OAuth messages.
@@ -119,7 +118,8 @@ namespace DotNetOAuth.Messages { #endregion
/// <summary>
- /// Gets or sets whether security sensitive strings are emitted from the ToString() method.
+ /// Gets or sets a value indicating whether security sensitive strings are
+ /// emitted from the ToString() method.
/// </summary>
internal static bool LowSecurityMode { get; set; }
@@ -135,11 +135,15 @@ namespace DotNetOAuth.Messages { #endregion
+ /// <summary>
+ /// Returns a human-friendly string describing the message and all serializable properties.
+ /// </summary>
+ /// <returns>The string representation of this object.</returns>
public override string ToString() {
StringBuilder builder = new StringBuilder();
builder.AppendFormat(CultureInfo.InvariantCulture, "{0} message", GetType().Name);
- if (recipient != null) {
- builder.AppendFormat(CultureInfo.InvariantCulture, " as {0} to {1}", recipient.AllowedMethods, recipient.Location);
+ if (this.recipient != null) {
+ builder.AppendFormat(CultureInfo.InvariantCulture, " as {0} to {1}", this.recipient.AllowedMethods, this.recipient.Location);
}
builder.AppendLine();
MessageDictionary dictionary = new MessageDictionary(this);
|