Click or drag to resize

FileConfigurationService Class

Provides a redirected configuration service which reads configuration information from a file
Inheritance Hierarchy
SystemObject
  SanteDB.Core.Services.ImplFileConfigurationService

Namespace: SanteDB.Core.Services.Impl
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public class FileConfigurationService : IConfigurationManager, 
	IServiceImplementation, IProvideBackupAssets, IRestoreBackupAssets, IRequestRestarts

The FileConfigurationService type exposes the following members.

Constructors
 NameDescription
Public methodFileConfigurationService Create new file confiugration service.
Public methodFileConfigurationService(String, Boolean) Get configuration service
Top
Properties
 NameDescription
Public propertyAssetClassIdentifiers Get the asset class identifiers this supports
Public propertyBackupPriority Get the priority of the backup job (higher priority gets placed into thebackup file first)
Public propertyConfiguration Get the configuration
Public propertyIsReadonly True if the configuration 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 the specified application setting
Public methodGetBackupAssets Get the backup asset
Public methodGetConnectionString Get connection string
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetSectionT Get the provided 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 configuration from disk
Public methodRestore Restore the asset to the proper location
Public methodSaveConfiguration Save configuration
Public methodSetAppSetting Set an application 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
Events
 NameDescription
Public eventRestartRequested Fired when the backup service requires a restart
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 configuration manager implementation reads from the configuration file santedb.config.xml in the same directory as the installed iCDR instance. This file is create either manually (as documented here), or using the Configuration Tool.
See Also