From 06f11e8badf53850152ccbeef7c71539d3bb0c02 Mon Sep 17 00:00:00 2001 From: Panagiotis Kanavos Date: Tue, 20 Dec 2011 22:40:35 +0200 Subject: [PATCH] Fixed frequent timeout by always closing WebResponse objects --- .../Pithos.Client.WPF/Converters/DummyConverter.cs | 22 ++++ .../Preferences/AddAccountView.xaml | 10 +- .../Preferences/AddAccountViewModel.cs | 31 +++++- trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs | 17 +-- trunk/Pithos.Client.WPF/app.config | 5 + trunk/Pithos.Core/Agents/StatusAgent.cs | 21 ---- trunk/Pithos.Core/TaskExtensions.cs | 13 +++ trunk/Pithos.Interfaces/ObjectInfo.cs | 11 +- trunk/Pithos.Network/RestClient.cs | 116 ++++++++++++++------ trunk/Pithos.sln | 33 ++++++ 10 files changed, 204 insertions(+), 75 deletions(-) create mode 100644 trunk/Pithos.Client.WPF/Converters/DummyConverter.cs diff --git a/trunk/Pithos.Client.WPF/Converters/DummyConverter.cs b/trunk/Pithos.Client.WPF/Converters/DummyConverter.cs new file mode 100644 index 0000000..71550b7 --- /dev/null +++ b/trunk/Pithos.Client.WPF/Converters/DummyConverter.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Windows.Data; + +namespace Pithos.Client.WPF.Converters +{ + public class DummyConverter:IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + return value; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + return value; + } + } +} diff --git a/trunk/Pithos.Client.WPF/Preferences/AddAccountView.xaml b/trunk/Pithos.Client.WPF/Preferences/AddAccountView.xaml index 4ee67cf..c0d28a9 100644 --- a/trunk/Pithos.Client.WPF/Preferences/AddAccountView.xaml +++ b/trunk/Pithos.Client.WPF/Preferences/AddAccountView.xaml @@ -12,10 +12,13 @@ + Description="This Wizard will walk you through adding a new Pithos account and retrieving an authentication token" + BackButtonVisibility="Collapsed" + FinishButtonVisibility="Collapsed"/> @@ -36,6 +39,7 @@ @@ -46,6 +50,7 @@ Title="Add an account manually" Description="Please enter the account credentials and press "Validate Credentials"" NextPage="{Binding ElementName=AccountPathPage}" + FinishButtonVisibility="Collapsed" CanSelectNextPage="{Binding HasValidCredentials}" > @@ -69,6 +74,7 @@