Class AzosApplication
Provides base implementation of IApplication for applications that have no forms like services and console apps. This class IS thread safe
Inherited Members
Namespace: Azos.Apps
Assembly: Azos.dll
Syntax
public class AzosApplication : CommonApplicationLogic, IDisposable, IApplication, INamed, ILocalizedTimeProvider
Constructors
AzosApplication()
Declaration
protected AzosApplication()
AzosApplication(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 AzosApplication(bool allowNesting, Configuration cmdLineArgs, ConfigSectionNode rootConfig)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowNesting | |
Configuration | cmdLineArgs | |
ConfigSectionNode | rootConfig |
AzosApplication(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 AzosApplication(bool allowNesting, string[] args, ConfigSectionNode rootConfig)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowNesting | |
System.String[] | args | |
ConfigSectionNode | rootConfig |
AzosApplication(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 AzosApplication(string[] args, ConfigSectionNode rootConfig)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | args | |
ConfigSectionNode | rootConfig |
Methods
Destructor()
Declaration
protected override void Destructor()