private static Config Load(string fullPath) {
XmlSerializer deserializer = new XmlSerializer(typeof(Config));
Config config;
using (TextReader textReader = new StreamReader(fullPath)) {
config = (Config)deserializer.Deserialize(textReader);
}
config.fullpath = fullPath;
config.configPath = Path.GetDirectoryName(fullPath);
HttpProxyUtils.SetDefaultProxy(config.Proxy);
return config;
}