diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-08 16:22:58 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-08 16:22:58 -0700 |
commit | d9c0ee017807cc17132e9c760d274afffc9b981c (patch) | |
tree | 28a79463a760a10c4d67cbac48f9a6af5cd25b32 /samples/OAuthConsumerWpf/MainWindow.xaml.cs | |
parent | 1c3247abc8fb37405d0602e5037b3cebbe8e944a (diff) | |
download | DotNetOpenAuth-d9c0ee017807cc17132e9c760d274afffc9b981c.zip DotNetOpenAuth-d9c0ee017807cc17132e9c760d274afffc9b981c.tar.gz DotNetOpenAuth-d9c0ee017807cc17132e9c760d274afffc9b981c.tar.bz2 |
Split up ITokenManager into two derived interfaces to better fit Consumer and Service Provider scenarios.
Diffstat (limited to 'samples/OAuthConsumerWpf/MainWindow.xaml.cs')
-rw-r--r-- | samples/OAuthConsumerWpf/MainWindow.xaml.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/samples/OAuthConsumerWpf/MainWindow.xaml.cs b/samples/OAuthConsumerWpf/MainWindow.xaml.cs index b57589a..bf65431 100644 --- a/samples/OAuthConsumerWpf/MainWindow.xaml.cs +++ b/samples/OAuthConsumerWpf/MainWindow.xaml.cs @@ -34,13 +34,12 @@ public MainWindow() { InitializeComponent(); - this.google = GoogleConsumer.CreateDesktopConsumer(this.tokenManager, string.Empty); + this.google = new DesktopConsumer(GoogleConsumer.ServiceDescription, this.tokenManager); } private void beginAuthorizationButton_Click(object sender, RoutedEventArgs e) { this.tokenManager.ConsumerKey = consumerKeyBox.Text; this.tokenManager.ConsumerSecret = consumerSecretBox.Text; - this.google.ConsumerKey = consumerKeyBox.Text; Cursor original = this.Cursor; this.Cursor = Cursors.Wait; |