Uncommented ReloadConfiguration and updated GetAllUsers to return a dummy user, in order to unblock UI development.

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-02 08:51:43 -04:00
parent dfc12d728c
commit 23a4c9af21
3 changed files with 108 additions and 77 deletions

View File

@@ -145,27 +145,19 @@ namespace MediaBrowser.Common.Kernel
{
//Configuration information for anything other than server-specific configuration will have to come via the API... -ebr
//// Deserialize config
//if (!File.Exists(ConfigurationPath))
//{
// Configuration = new TConfigurationType();
//}
//else
//{
// Configuration = JsonSerializer.DeserializeFromFile<TConfigurationType>(ConfigurationPath);
//}
// Deserialize config
if (!File.Exists(ApplicationPaths.ConfigurationPath))
{
Configuration = new TConfigurationType();
}
else
{
Configuration = JsonSerializer.DeserializeFromFile<TConfigurationType>(ApplicationPaths.ConfigurationPath);
}
//Logger.LoggerInstance.LogSeverity = Configuration.LogSeverity;
Logger.LoggerInstance.LogSeverity = Configuration.LogSeverity;
}
/// <summary>
/// Saves the current application configuration to the config file
/// </summary>
//public void SaveConfiguration()
//{
// JsonSerializer.SerializeToFile(Configuration, ConfigurationPath);
//}
/// <summary>
/// Restarts the Http Server, or starts it if not currently running
/// </summary>