Skip to main content

Main Method

Entry point for the GSharp.Testbed console application. This method starts the testbed host, applies configuration from the Program class, and runs the module once for debugging and validation.

Definition​

Namespace: GSharp.Testbed
Type: Program
Assembly: GSharp.Testbed.exe

private static void Main()

Remarks​

This method exists primarily for clarity. Its sole purpose is to call RunTestbed(), which is defined in the other part of the Program partial class. RunTestbed() instantiates the testbed host, applies your configuration, and executes the module; you typically do not need to modify either method.

Because Main is the application entry point, you can add custom logic before or after the call to RunTestbed() if you desire, but in normal use this is not required. Configuration and module-specific behavior should remain in the testbed configuration methods and in your module code.

When you run the testbed, it executes your module once using the configuration you have provided: it reads data from your data source according to your point mappings, performs the calculation as defined in your module, and logs the results.

Remember

If you find a need to add custom logic to Main(), remember to call RunTestbed() at some point. Failure to do so will result in the testbed not running at all.

See Also​