ConsoleApp Class

Helper class for Console Applications.

Definition

Namespace: Application.Helper
Assembly: Application.Helper (in Application.Helper.dll) Version: 2.0.5
C#
public class ConsoleApp
Inheritance
Object    ConsoleApp

Constructors

ConsoleAppCreates a new instance of the ConsoleApp class.

Properties

ConfigFileGets the name of the current application configuration file.
DebugModeIndicates whether a debugger is attached to the process.
ElapsedTimeGets the total elapsed time measured.
HelpRequestIndicates whether execution help has been requested.
IsUnitTestSets whether this is running as a unit test.
TitleGets the application title.

Methods

FormatTitleLineFormats a title line to be logged.
ResumeElapsedResumes measuring elapsed time for an interval.
ShowProgramInfoOutput the program information to the Console.
StartAppStart the console application.
StartApp(IReadOnlyListString)Start the console application.
StopAppStops the application and sets the exit code.
SuspendElapsedSuspends measuring elapsed time for an interval.

See Also