Class ServiceBaseApplication
Provides base implementation of IApplication for applications that have no forms like services and console apps. This class IS thread safe
Inherited Members
Namespace: NFX.ApplicationModel
Assembly: NFX.dll
Syntax
public class ServiceBaseApplication : CommonApplicationLogic, IDisposable, IApplication, INamed, ILocalizedTimeProvider
Constructors
ServiceBaseApplication(Boolean, Configuration, ConfigSectionNode)
Takes optional command-line configuration args and root configuration. If configuration is null then application is configured from a file co-located with entry-point assembly and called the same name as assembly with '.config' extension, unless args are specified and "/config file" switch is used in which case 'file' has to be locatable and readable. Pass allowNesting=true to nest other app container instances
Declaration
public ServiceBaseApplication(bool allowNesting, Configuration cmdLineArgs, ConfigSectionNode rootConfig)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowNesting | |
Configuration | cmdLineArgs | |
ConfigSectionNode | rootConfig |
ServiceBaseApplication(Boolean, String[], ConfigSectionNode)
Takes optional application args[] and root configuration. The args are parsed into CommandArgsConfiguration. If configuration is null then application is configured from a file co-located with entry-point assembly and called the same name as assembly with '.config' extension, unless args are specified and "/config file" switch is used in which case 'file' has to be locatable and readable. Pass allowNesting=true to nest other app container instances
Declaration
public ServiceBaseApplication(bool allowNesting, string[] args, ConfigSectionNode rootConfig)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowNesting | |
System.String[] | args | |
ConfigSectionNode | rootConfig |
ServiceBaseApplication(String[], ConfigSectionNode)
Takes optional application args[] and root configuration. The args are parsed into CommandArgsConfiguration. If configuration is null then application is configured from a file co-located with entry-point assembly and called the same name as assembly with '.config' extension, unless args are specified and "/config file" switch is used in which case 'file' has to be locatable and readable.
Declaration
public ServiceBaseApplication(string[] args, ConfigSectionNode rootConfig)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | args | |
ConfigSectionNode | rootConfig |
Methods
Destructor()
Declaration
protected override void Destructor()