aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-03-13 18:33:09 -0400
committerLukePulverenti <luke.pulverenti@gmail.com>2013-03-13 18:33:09 -0400
commitb258dcd182b2d872e5e584b4f1a0014229a48e27 (patch)
tree355b41bc3f23cf3e95b4254052590eda530d37fa
parent2ca20eeefcfbd0258a76f4139a8ba68971cf2434 (diff)
#19 - Auto-Run at startup is not working
-rw-r--r--MediaBrowser.Common.Implementations/BaseApplicationHost.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs
index 817018b49..ed0190a23 100644
--- a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs
+++ b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs
@@ -225,6 +225,8 @@ namespace MediaBrowser.Common.Implementations
Resolve<ITaskManager>().AddTasks(GetExports<IScheduledTask>(false));
Task.Run(() => ConfigureAutoRunAtStartup());
+
+ ConfigurationManager.ConfigurationUpdated += ConfigurationManager_ConfigurationUpdated;
});
}
@@ -478,6 +480,17 @@ namespace MediaBrowser.Common.Implementations
protected abstract string ProductShortcutPath { get; }
/// <summary>
+ /// Handles the ConfigurationUpdated event of the ConfigurationManager control.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
+ /// <exception cref="System.NotImplementedException"></exception>
+ void ConfigurationManager_ConfigurationUpdated(object sender, EventArgs e)
+ {
+ ConfigureAutoRunAtStartup();
+ }
+
+ /// <summary>
/// Configures the auto run at startup.
/// </summary>
private void ConfigureAutoRunAtStartup()