Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Create WebApplication class for starting web apps application entry points (static void Main) #430

@DamianEdwards

Description

@DamianEdwards

Create a new type that will be called from web applications in their static void Main(string args). Note this depends on #425

public static class WebApplication
{
    public static void Start<TStartup>()
    {
        Start(typeof(TStartup), null);
    }

    public static void Start<TStartup>(string[] args)
    {
        Start(typeof(TStartup), args);
    }

    public static void Start(Type startupType)
    {
        Start(startupType, null);
    }

    public static void Start(Type startupType, string[] args)
    {
        // Basically the body of Microsoft.AspNet.Hosting.Program.Main, which will now call into this instead
        ...
    }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions