mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Refactoring proxy, part 1
This commit is contained in:
@@ -1,17 +1,11 @@
|
|||||||
using Wox.Plugin;
|
namespace Wox.Infrastructure.UserSettings
|
||||||
|
|
||||||
namespace Wox.Core.UserSettings
|
|
||||||
{
|
{
|
||||||
public class HttpProxy : IHttpProxy
|
public class HttpProxy
|
||||||
{
|
{
|
||||||
private static readonly HttpProxy instance = new HttpProxy();
|
public bool Enabled { get; set; } = false;
|
||||||
public Settings Settings { get; set; }
|
public string Server { get; set; }
|
||||||
public static HttpProxy Instance => instance;
|
public int Port { get; set; }
|
||||||
|
public string UserName { get; set; }
|
||||||
public bool Enabled => Settings.ProxyEnabled;
|
public string Password { get; set; }
|
||||||
public string Server => Settings.ProxyServer;
|
|
||||||
public int Port => Settings.ProxyPort;
|
|
||||||
public string UserName => Settings.ProxyUserName;
|
|
||||||
public string Password => Settings.ProxyPassword;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user