Show / Hide Table of Contents

Class Program

Entry-point to the CLI app process, hosting the static void Main method. This uses .NET Generic Host to wire up and run an instance of Application.

Inheritance
System.Object
Program
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Cli
Assembly: ZptSharp.Cli.dll
Syntax
public static class Program

Methods

| Improve this Doc View Source

GetHostBuilder(String[])

Gets a .NET Generic Host Microsoft.Extensions.Hosting.IHostBuilder for the app.

Declaration
public static IHostBuilder GetHostBuilder(string[] args)
Parameters
Type Name Description
System.String[] args

The command-line arguments.

Returns
Type Description
Microsoft.Extensions.Hosting.IHostBuilder

A host builder, from which the app may be started.

| Improve this Doc View Source

Main(String[])

Serves as the entry point to the application process.

Declaration
public static void Main(string[] args)
Parameters
Type Name Description
System.String[] args

The command-line arguments.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX