Property | Type | Description | |
---|---|---|---|
_applicationVersionUpgrader | IApplicationVersionUpgrader |
Method | Description | |
---|---|---|
HabaneroApp ( string appName, string appVersion ) : System |
Constructor to initialise a new application with basic application information. Use the Startup() method to launch the application.
|
|
Startup ( ) : bool |
Launches the application, initialising the logger, the database configuration and connection, the class definitions, the exception notifier and the synchronisation controller. This method also carries out any version upgrades using the IApplicationVersionUpgrader, if specified.
|
Method | Description | |
---|---|---|
SetupApplicationNameAndVersion ( ) : void |
Sets the GlobalRegistry ApplicationName and ApplicationVersion from AppName and AppVersion.
|
|
SetupClassDefs ( ) : void |
Loads the class definitions
|
|
SetupDatabaseConnection ( ) : void |
Sets up the database connection. If not provided, then reads the connection from the config file.
|
|
SetupExceptionNotifier ( ) : void |
Sets up the exception notifier used to display exceptions to the final user. If not specified, assumes the FormExceptionNotifier.
|
|
SetupLogging ( ) : void |
Sets up logging using Log4net. If you want to use your own logging component override this.
|
|
SetupSettings ( ) : void |
Initialises the settings. If not provided, DatabaseSettings is assumed.
|
|
Upgrade ( ) : void |
Upgrades an application's database where an application upgrader has been provided. See IApplicationVersionUpgrader.
|
Method | Description | |
---|---|---|
LogAppStartingInfo ( IHabaneroLogger log ) : void |
public HabaneroApp ( string appName, string appVersion ) : System | ||
appName | string | The application name |
appVersion | string | The application version |
return | System |
protected SetupApplicationNameAndVersion ( ) : void | ||
return | void |
protected abstract SetupDatabaseConnection ( ) : void | ||
return | void |
protected abstract SetupExceptionNotifier ( ) : void | ||
return | void |