IConfiguration |
The IConfigurationManager type exposes the following members.
| Name | Description | |
|---|---|---|
| Configuration | Get the entirety of the SanteDB configuration | |
| IsReadonly | True if the configuration manager is readonly | |
| 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 | |
| SaveConfiguration | Save the configuration | |
| SetAppSetting | Set the specified application setting | |
| SetTransientConnectionString | Adds a connection string only for the lifetime of the server |
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.