From b258dcd182b2d872e5e584b4f1a0014229a48e27 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Wed, 13 Mar 2013 18:33:09 -0400 Subject: [PATCH] #19 - Auto-Run at startup is not working --- .../BaseApplicationHost.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs index 817018b49c..ed0190a237 100644 --- a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs +++ b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs @@ -225,6 +225,8 @@ namespace MediaBrowser.Common.Implementations Resolve().AddTasks(GetExports(false)); Task.Run(() => ConfigureAutoRunAtStartup()); + + ConfigurationManager.ConfigurationUpdated += ConfigurationManager_ConfigurationUpdated; }); } @@ -477,6 +479,17 @@ namespace MediaBrowser.Common.Implementations /// protected abstract string ProductShortcutPath { get; } + /// + /// Handles the ConfigurationUpdated event of the ConfigurationManager control. + /// + /// The source of the event. + /// The instance containing the event data. + /// + void ConfigurationManager_ConfigurationUpdated(object sender, EventArgs e) + { + ConfigureAutoRunAtStartup(); + } + /// /// Configures the auto run at startup. ///