GenericServiceFeatureTService Class |
Namespace: SanteDB.Core.Configuration.Features
public abstract class GenericServiceFeature<TService> : IFeature where TService : IServiceImplementation
The GenericServiceFeatureTService type exposes the following members.
Name | Description | |
---|---|---|
GenericServiceFeatureTService |
Create a generic service feature
|
Name | Description | |
---|---|---|
Configuration |
Gets or sets the configuration object which the feature wishes the configuration tool to render.
| |
ConfigurationType |
Gets or sets the type of configuration section which this feature is expecting
| |
Description |
Gets a human readable description of the feature which can be shown on the user interface
| |
Flags |
Gets the flags for this feature (such as auto-configure, always apply configuration, etc.)
| |
Group |
The group in which this feature belongs
| |
Name |
Gets the name of the feature to show in the main configuration panel
|
Name | Description | |
---|---|---|
CreateInstallTasks |
Creates one or more IConfigurationTask instances which can be executed to setup the feature
| |
CreateUninstallTasks |
Creates one or more IConfigurationTask instances which can be executed to remove the feature from SanteDB
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetDefaultConfiguration |
Returns the default configuration object for this service (so the configuration tool can expose the options to the user)
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
QueryState |
Query the status of the feature in configuration | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
ConvertTReturn |
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.) | |
GetInstanceOfTDomain |
Gets an instance of TDomain from me
(Defined by ModelExtensions.) |
public class MyFeature : GenericServiceFeature<MyService> { // Override the group you want your feature to appear in public override string Group => FeatureGroup.System; // Override the type of configuration public override Type ConfigurationType => typeof(FileSystemDispatcherQueueConfigurationSection); }