public static UserConfig Load(string authorizationToken)
{
if (string.IsNullOrWhiteSpace(authorizationToken))
throw new ArgumentNullException("authorizationToken");
string path = string.Concat(Helpers.ServiceHelper.UserStoreLocation, "\\", authorizationToken, ".json");
if (File.Exists(path))
{
string json = File.ReadAllText(path);
UserConfig output = Newtonsoft.Json.JsonConvert.DeserializeObject<UserConfig>(json);
return output;
}
else
{
return null;
}
}