diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-11-15 13:29:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-15 13:29:04 +0100 |
| commit | 331c7f84817ae2c6897cc60d16a5d66b27f3f187 (patch) | |
| tree | 16b53f1bb904fdbbccf758d6e46b970899bb7252 /MediaBrowser.Common/Configuration/IConfigurationManager.cs | |
| parent | ce4787c7eb2d19de263d7db0d05479f176544034 (diff) | |
| parent | 51996cd34dface6c9d6a6fb969bd412ac8cb56f7 (diff) | |
Merge pull request #4253 from BaronGreenback/fordiscussion
DI in plugins
Diffstat (limited to 'MediaBrowser.Common/Configuration/IConfigurationManager.cs')
| -rw-r--r-- | MediaBrowser.Common/Configuration/IConfigurationManager.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Configuration/IConfigurationManager.cs b/MediaBrowser.Common/Configuration/IConfigurationManager.cs index fe726090d..fc63d9350 100644 --- a/MediaBrowser.Common/Configuration/IConfigurationManager.cs +++ b/MediaBrowser.Common/Configuration/IConfigurationManager.cs @@ -47,6 +47,13 @@ namespace MediaBrowser.Common.Configuration void ReplaceConfiguration(BaseApplicationConfiguration newConfiguration); /// <summary> + /// Manually pre-loads a factory so that it is available pre system initialisation. + /// </summary> + /// <typeparam name="T">Class to register.</typeparam> + void RegisterConfiguration<T>() + where T : IConfigurationFactory; + + /// <summary> /// Gets the configuration. /// </summary> /// <param name="key">The key.</param> |
