Interface IConfigurationManager
Namespace: MediaBrowser.Common.Configuration
Assembly: MediaBrowser.Common.dll
Syntax
public interface IConfigurationManager
Properties
CommonApplicationPaths
Gets or sets the application paths.
Declaration
IApplicationPaths CommonApplicationPaths { get; }
Property Value
| Type | Description |
|---|---|
| IApplicationPaths | The application paths. |
CommonConfiguration
Gets the configuration.
Declaration
BaseApplicationConfiguration CommonConfiguration { get; }
Property Value
| Type | Description |
|---|---|
| BaseApplicationConfiguration | The configuration. |
Methods
AddParts(IEnumerable<IConfigurationFactory>)
Adds the parts.
Declaration
void AddParts(IEnumerable<IConfigurationFactory> factories)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<IConfigurationFactory> | factories | The factories. |
GetConfiguration(String)
Gets the configuration.
Declaration
object GetConfiguration(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The key. |
Returns
| Type | Description |
|---|---|
| System.Object | System.Object. |
GetConfigurationType(String)
Gets the type of the configuration.
Declaration
Type GetConfigurationType(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The key. |
Returns
| Type | Description |
|---|---|
| System.Type | Type. |
ReplaceConfiguration(BaseApplicationConfiguration)
Replaces the configuration.
Declaration
void ReplaceConfiguration(BaseApplicationConfiguration newConfiguration)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseApplicationConfiguration | newConfiguration | The new configuration. |
SaveConfiguration()
Saves the configuration.
Declaration
void SaveConfiguration()
SaveConfiguration(String, Object)
Saves the configuration.
Declaration
void SaveConfiguration(string key, object configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The key. |
| System.Object | configuration | The configuration. |
Events
ConfigurationUpdated
Occurs when [configuration updated].
Declaration
event EventHandler<EventArgs> ConfigurationUpdated
Event Type
| Type | Description |
|---|---|
| System.EventHandler<System.EventArgs> |
NamedConfigurationUpdated
Occurs when [named configuration updated].
Declaration
event EventHandler<ConfigurationUpdateEventArgs> NamedConfigurationUpdated
Event Type
| Type | Description |
|---|---|
| System.EventHandler<ConfigurationUpdateEventArgs> |
NamedConfigurationUpdating
Occurs when [configuration updating].
Declaration
event EventHandler<ConfigurationUpdateEventArgs> NamedConfigurationUpdating
Event Type
| Type | Description |
|---|---|
| System.EventHandler<ConfigurationUpdateEventArgs> |