summaryrefslogtreecommitdiffstats
path: root/samples/ConsumerWpf/InMemoryTokenManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/ConsumerWpf/InMemoryTokenManager.cs')
-rw-r--r--samples/ConsumerWpf/InMemoryTokenManager.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/samples/ConsumerWpf/InMemoryTokenManager.cs b/samples/ConsumerWpf/InMemoryTokenManager.cs
index 439f1a2..45ae0b2 100644
--- a/samples/ConsumerWpf/InMemoryTokenManager.cs
+++ b/samples/ConsumerWpf/InMemoryTokenManager.cs
@@ -9,6 +9,7 @@ namespace DotNetOAuth.Samples.ConsumerWpf {
using System.Collections.Generic;
using System.Diagnostics;
using DotNetOAuth.ChannelElements;
+ using DotNetOAuth.Messages;
internal class InMemoryTokenManager : ITokenManager {
private Dictionary<string, string> tokensAndSecrets = new Dictionary<string, string>();
@@ -34,8 +35,8 @@ namespace DotNetOAuth.Samples.ConsumerWpf {
return this.tokensAndSecrets[token];
}
- public void StoreNewRequestToken(string consumerKey, string requestToken, string requestTokenSecret, IDictionary<string, string> requestParameters, IDictionary<string, string> responseParameters) {
- this.tokensAndSecrets[requestToken] = requestTokenSecret;
+ public void StoreNewRequestToken(RequestTokenMessage request, UnauthorizedRequestTokenMessage response) {
+ this.tokensAndSecrets[response.RequestToken] = response.TokenSecret;
}
/// <summary>