C# Class HandCoded.Framework.Application

The Application class provides a basic application framework. Derived classes extend its functionality and specialise it to a particular task.
Inheritance: Process
Afficher le fichier Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Méthodes publiques

Méthode Description
GetAllAssemblies ( ) : List

Returns a list of all the assemblies that are referenced by the executing application.

GetType ( string name ) : Type

Searches all of the assemblies that comprise the current application to locate a Type instance for the indicated type name.

PathTo ( string where ) : string

Derives the path to the indicated location relative to the applications data directory.

Run ( string arguments ) : void

Causes the Application to process it's command line arguments and begin the execution cycle.

ToString ( ) : string

Converts the instance data members to a string representation that can be displayed for debugging purposes.

Méthodes protégées

Méthode Description
Application ( ) : System

Constructs an Application instance and records it.

DescribeArguments ( ) : string

Provides a text description of the arguments expected after the options (if any), for example "file ...". This method should be overridedn in a derived class requiring an non-empty argument list.

StartUp ( ) : void

Provides an Application with a chance to perform any initialisation. This implementation checks for the -help option. Derived classes may extend the functionality.

ToDebug ( ) : string

Converts the instance's member values to string representations and concatenates them all together. This function is used by ToString and my be overwritten in derived classes.

Method Details

Application() protected méthode

Constructs an Application instance and records it.
protected Application ( ) : System
Résultat System

DescribeArguments() protected méthode

Provides a text description of the arguments expected after the options (if any), for example "file ...". This method should be overridedn in a derived class requiring an non-empty argument list.
protected DescribeArguments ( ) : string
Résultat string

GetAllAssemblies() public static méthode

Returns a list of all the assemblies that are referenced by the executing application.
public static GetAllAssemblies ( ) : List
Résultat List

GetType() public static méthode

Searches all of the assemblies that comprise the current application to locate a Type instance for the indicated type name.
public static GetType ( string name ) : Type
name string The qualified name of the required type.
Résultat System.Type

PathTo() public static méthode

Derives the path to the indicated location relative to the applications data directory.
public static PathTo ( string where ) : string
where string The target location.
Résultat string

Run() public méthode

Causes the Application to process it's command line arguments and begin the execution cycle.
public Run ( string arguments ) : void
arguments string The array of command line arguments.
Résultat void

StartUp() protected méthode

Provides an Application with a chance to perform any initialisation. This implementation checks for the -help option. Derived classes may extend the functionality.
protected StartUp ( ) : void
Résultat void

ToDebug() protected méthode

Converts the instance's member values to string representations and concatenates them all together. This function is used by ToString and my be overwritten in derived classes.
protected ToDebug ( ) : string
Résultat string

ToString() public méthode

Converts the instance data members to a string representation that can be displayed for debugging purposes.
public ToString ( ) : string
Résultat string