Click or drag to resize

DockerConfigurationManager Class

A configuration manager which constructs a SanteDBConfiguration from environment variables
Inheritance Hierarchy
SystemObject
  SanteDB.Docker.CoreDockerConfigurationManager

Namespace: SanteDB.Docker.Core
Assembly: SanteDB.Docker.Core (in SanteDB.Docker.Core.dll) Version: 3.0.2081-alpha+33b80aa7f95e24a6799613bc47257a05ef96e81a
Syntax
public class DockerConfigurationManager : IConfigurationManager, 
	IServiceImplementation

The DockerConfigurationManager type exposes the following members.

Constructors
 NameDescription
Public methodDockerConfigurationManager Get configuration service
Top
Properties
 NameDescription
Public propertyConfiguration Gets the current configuration
Public propertyIsReadonly True if the configuration manager is readonly
Public propertyServiceName Gets the service name
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetAppSetting Get an application setting
Public methodGetConnectionString Gets the specified configuration string
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetSectionT Get the specified configuration section
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodReload Reload the configuration
Public methodSaveConfiguration Save the configuration
Public methodSetAppSetting Sets an app setting
Public methodSetTransientConnectionString Adds a connection string only for the lifetime of the server
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
Remarks

This implementation of the IConfigurationManager uses environment variables passed from a Dockerized Installation Environment so that SanteDB modules may operate as though they were configured from a static configuration file.

This class scans the SDB_FEATURE environment variables and locates the IDockerFeature implementation for the specified environment variable. It then calls the Configure() method on those implementations and builds an instance of the SanteDBConfiguration object based on those providers.

For more information about the Docker features and their configuration see the Docker Feature documentation article

See Also