diff options
| author | Eric Reed <ebr@mediabrowser3.com> | 2013-03-13 18:59:39 -0400 |
|---|---|---|
| committer | Eric Reed <ebr@mediabrowser3.com> | 2013-03-13 18:59:39 -0400 |
| commit | f18575e4b1deedb1a61990a1758912a2b56eecf5 (patch) | |
| tree | eaf21c5b4d2f6d572113ebb0d1a8fe4d1122e2f7 | |
| parent | c6f7afd5ef959466dc6dea8b4347b6a6aab370d1 (diff) | |
| parent | f9dd970bf873de34b6d428bef3212884d310ee9e (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
| -rw-r--r-- | MediaBrowser.Common.Implementations/BaseApplicationHost.cs | 13 |
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() |
