summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-09-03 09:21:39 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-09-03 09:21:39 -0700
commit0082077c0f372e3a59d255d3cfb0257bf1bb2b55 (patch)
treef8d738d135d3b7c65d6ef2e1fa3beac2e0b9c299
parentd0ae9bee5b5b5697cecae166afd5c6c2ea9636d1 (diff)
downloadDotNetOpenAuth-0082077c0f372e3a59d255d3cfb0257bf1bb2b55.zip
DotNetOpenAuth-0082077c0f372e3a59d255d3cfb0257bf1bb2b55.tar.gz
DotNetOpenAuth-0082077c0f372e3a59d255d3cfb0257bf1bb2b55.tar.bz2
Fixed StyleCop and FxCop messages.
-rw-r--r--src/DotNetOpenAuth/InfoCard/InfoCardSelector.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/DotNetOpenAuth/InfoCard/InfoCardSelector.cs b/src/DotNetOpenAuth/InfoCard/InfoCardSelector.cs
index c54d787..21911fa 100644
--- a/src/DotNetOpenAuth/InfoCard/InfoCardSelector.cs
+++ b/src/DotNetOpenAuth/InfoCard/InfoCardSelector.cs
@@ -194,6 +194,13 @@ namespace DotNetOpenAuth.InfoCard {
private bool audienceSet;
/// <summary>
+ /// Initializes a new instance of the <see cref="InfoCardSelector"/> class.
+ /// </summary>
+ public InfoCardSelector() {
+ this.ToolTip = InfoCardStrings.SelectorClickPrompt;
+ }
+
+ /// <summary>
/// Occurs when an InfoCard has been submitted but not decoded yet.
/// </summary>
[Category(InfoCardCategory)]
@@ -211,13 +218,6 @@ namespace DotNetOpenAuth.InfoCard {
[Category(InfoCardCategory)]
public event EventHandler<TokenProcessingErrorEventArgs> TokenProcessingError;
- /// <summary>
- /// Initializes a new instance of the <see cref="InfoCardSelector"/> class.
- /// </summary>
- public InfoCardSelector() {
- this.ToolTip = InfoCardStrings.SelectorClickPrompt;
- }
-
#region Properties
/// <summary>
@@ -264,6 +264,8 @@ namespace DotNetOpenAuth.InfoCard {
/// </summary>
[Description("The URL to this site's privacy policy.")]
[Category(InfoCardCategory), DefaultValue(PrivacyUrlDefault)]
+ [SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "System.Uri", Justification = "We construct a Uri to validate the format of the string.")]
+ [SuppressMessage("Microsoft.Usage", "CA2234:PassSystemUriObjectsInsteadOfStrings", Justification = "That overload is NOT the same.")]
public string PrivacyUrl {
get {
return (string)this.ViewState[PrivacyUrlViewStateKey] ?? PrivacyUrlDefault;