From 764a372e9f12c4c57e36324d7a52a3fb27da75c6 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Sun, 19 Jun 2016 16:18:08 +0100 Subject: [PATCH] Refactoring proxy, part 1 --- Wox.Core/UserSettings/HttpProxy.cs | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Wox.Core/UserSettings/HttpProxy.cs b/Wox.Core/UserSettings/HttpProxy.cs index ff6d5aaab1..5385aca12a 100644 --- a/Wox.Core/UserSettings/HttpProxy.cs +++ b/Wox.Core/UserSettings/HttpProxy.cs @@ -1,17 +1,11 @@ -using Wox.Plugin; - -namespace Wox.Core.UserSettings +namespace Wox.Infrastructure.UserSettings { - public class HttpProxy : IHttpProxy + public class HttpProxy { - private static readonly HttpProxy instance = new HttpProxy(); - public Settings Settings { get; set; } - public static HttpProxy Instance => instance; - - public bool Enabled => Settings.ProxyEnabled; - public string Server => Settings.ProxyServer; - public int Port => Settings.ProxyPort; - public string UserName => Settings.ProxyUserName; - public string Password => Settings.ProxyPassword; + public bool Enabled { get; set; } = false; + public string Server { get; set; } + public int Port { get; set; } + public string UserName { get; set; } + public string Password { get; set; } } } \ No newline at end of file