mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 03:59:15 +08:00
44 lines
954 B
C#
44 lines
954 B
C#
|
using Wox.Infrastructure.Storage.UserSettings;
|
|||
|
using Wox.Plugin;
|
|||
|
|
|||
|
namespace Wox.Helper
|
|||
|
{
|
|||
|
public class HttpProxy : IHttpProxy
|
|||
|
{
|
|||
|
private static readonly HttpProxy instance = new HttpProxy();
|
|||
|
|
|||
|
private HttpProxy()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public static HttpProxy Instance
|
|||
|
{
|
|||
|
get { return instance; }
|
|||
|
}
|
|||
|
|
|||
|
public bool Enabled
|
|||
|
{
|
|||
|
get { return UserSettingStorage.Instance.ProxyEnabled; }
|
|||
|
}
|
|||
|
|
|||
|
public string Server
|
|||
|
{
|
|||
|
get { return UserSettingStorage.Instance.ProxyServer; }
|
|||
|
}
|
|||
|
|
|||
|
public int Port
|
|||
|
{
|
|||
|
get { return UserSettingStorage.Instance.ProxyPort; }
|
|||
|
}
|
|||
|
|
|||
|
public string UserName
|
|||
|
{
|
|||
|
get { return UserSettingStorage.Instance.ProxyUserName; }
|
|||
|
}
|
|||
|
|
|||
|
public string Password
|
|||
|
{
|
|||
|
get { return UserSettingStorage.Instance.ProxyPassword; }
|
|||
|
}
|
|||
|
}
|
|||
|
}
|