summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/Consumer.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-10-08 09:52:48 -0700
committerAndrew <andrewarnott@gmail.com>2008-10-08 09:52:48 -0700
commit2276413c733f6a26e9b366214bdfb5677e711c75 (patch)
tree0047f172fa2a7f115baf243c0a8cf5a3e5fb4e92 /src/DotNetOAuth/Consumer.cs
parent29d897769f3e7a9568fa668836807d9a31b5fabc (diff)
downloadDotNetOpenAuth-2276413c733f6a26e9b366214bdfb5677e711c75.zip
DotNetOpenAuth-2276413c733f6a26e9b366214bdfb5677e711c75.tar.gz
DotNetOpenAuth-2276413c733f6a26e9b366214bdfb5677e711c75.tar.bz2
Moved SigningVerificationCallback handling to the OAuthChannel.
Diffstat (limited to 'src/DotNetOAuth/Consumer.cs')
-rw-r--r--src/DotNetOAuth/Consumer.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/DotNetOAuth/Consumer.cs b/src/DotNetOAuth/Consumer.cs
index 881eec8..0fc511a 100644
--- a/src/DotNetOAuth/Consumer.cs
+++ b/src/DotNetOAuth/Consumer.cs
@@ -38,9 +38,8 @@ namespace DotNetOAuth {
this.WebRequestHandler = new StandardWebRequestHandler();
ITamperProtectionChannelBindingElement signingElement = serviceDescription.CreateTamperProtectionElement();
INonceStore store = new NonceMemoryStore(StandardExpirationBindingElement.DefaultMaximumMessageAge);
- this.Channel = new OAuthChannel(signingElement, store, new OAuthConsumerMessageTypeProvider(tokenManager), this.WebRequestHandler);
+ this.Channel = new OAuthChannel(signingElement, store, tokenManager, new OAuthConsumerMessageTypeProvider(tokenManager), this.WebRequestHandler);
this.ServiceProvider = serviceDescription;
- this.TokenManager = tokenManager;
}
/// <summary>
@@ -61,7 +60,9 @@ namespace DotNetOAuth {
/// <summary>
/// Gets the persistence store for tokens and secrets.
/// </summary>
- public ITokenManager TokenManager { get; private set; }
+ public ITokenManager TokenManager {
+ get { return this.Channel.TokenManager; }
+ }
/// <summary>
/// Gets or sets the object that processes <see cref="HttpWebRequest"/>s.