summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-10-23 19:52:59 -0700
committerAndrew <andrewarnott@gmail.com>2008-10-23 19:52:59 -0700
commit38c7d25878550429583558f5c907e34fb094fb68 (patch)
treec6edc9ee32d6d2031202040ac18cd2d288b3bb83 /src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs
parent7ba9649126a7b802e348fbe210383fabc2898659 (diff)
downloadDotNetOpenAuth-38c7d25878550429583558f5c907e34fb094fb68.zip
DotNetOpenAuth-38c7d25878550429583558f5c907e34fb094fb68.tar.gz
DotNetOpenAuth-38c7d25878550429583558f5c907e34fb094fb68.tar.bz2
Applied FxCop fixes.
Diffstat (limited to 'src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs')
-rw-r--r--src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs b/src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs
index 5e3dbca..20ad5b7 100644
--- a/src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs
+++ b/src/DotNetOAuth/Messages/DirectUserToServiceProviderMessage.cs
@@ -7,6 +7,7 @@
namespace DotNetOAuth.Messages {
using System;
using System.Collections.Generic;
+ using System.Diagnostics.CodeAnalysis;
using DotNetOAuth.Messaging;
/// <summary>
@@ -28,12 +29,13 @@ namespace DotNetOAuth.Messages {
/// </summary>
/// <param name="serviceProvider">The URI of the Service Provider endpoint to send this message to.</param>
internal DirectUserToServiceProviderMessage(MessageReceivingEndpoint serviceProvider)
- : base(MessageProtection.None, MessageTransport.Indirect, serviceProvider) {
+ : base(MessageProtections.None, MessageTransport.Indirect, serviceProvider) {
}
/// <summary>
/// Gets or sets the Request or Access Token.
/// </summary>
+ [SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes", Justification = "This property IS accessible by a different name.")]
string ITokenContainingMessage.Token {
get { return this.RequestToken; }
set { this.RequestToken = value; }
@@ -42,8 +44,8 @@ namespace DotNetOAuth.Messages {
/// <summary>
/// Gets the extra, non-OAuth parameters that will be included in the message.
/// </summary>
- public IDictionary<string, string> ExtraData {
- get { return ((IProtocolMessage)this).ExtraData; }
+ public new IDictionary<string, string> ExtraData {
+ get { return base.ExtraData; }
}
/// <summary>
@@ -54,14 +56,14 @@ namespace DotNetOAuth.Messages {
/// accept requests to the User Authorization URL without it, in which
/// case it will prompt the User to enter it manually.
/// </remarks>
- [MessagePart(Name = "oauth_token", IsRequired = false)]
+ [MessagePart("oauth_token", IsRequired = false)]
internal string RequestToken { get; set; }
/// <summary>
/// Gets or sets a URL the Service Provider will use to redirect the User back
/// to the Consumer when Obtaining User Authorization is complete. Optional.
/// </summary>
- [MessagePart(Name = "oauth_callback", IsRequired = false)]
+ [MessagePart("oauth_callback", IsRequired = false)]
internal Uri Callback { get; set; }
}
}