IConfigurationManager Interface |
Namespace: SanteDB.Core.Services
The IConfigurationManager type exposes the following members.
Name | Description | |
---|---|---|
Configuration |
Get the entirety of the SanteDB configuration
| |
ServiceName |
Gets the service name
(Inherited from IServiceImplementation.) |
Name | Description | |
---|---|---|
GetAppSetting |
Gets the specified application setting
| |
GetConnectionString |
Get the specified connection string to a database
| |
GetSectionT |
Get the specified configuration section
| |
Reload |
Forces the configuration manager to reload the current configuration
| |
SetAppSetting |
Set the specified application setting
|
SanteDB plugins are expected to be portable and can run on a variety of platforms, in a variety of deployments, and a variety of environments. This necessitates a consistent manner to manage configuration data for the SanteDB services. The IConfigurationManager is responsible for this duty. Example implementations of this service may include:
By default, the SanteDB iCDR and dCDR will use an XML or JSON file to store the configuration information, however the SanteDBConfiguration class can be shared on any number of transports.