private static void Main(string[] args)
    {
        InitializeContainer();

        using var handler = new BasicServiceHandler <WebApplicationStartup>(startupArgs: args);

        if (!handler.Start(args))
        {
            RunAsConsoleApplication(args);
        }
    }
示例#2
0
        private static void Main(string[] args)
        {
#if DEBUG
            global::System.Diagnostics.Debugger.Launch();
#endif

            Args = args;

            DIContainer.Current.RegisterAll().Verify();

            using var handler = new BasicServiceHandler <WebApplicationStartup>();

            if (!handler.Start(args))
            {
                RunAsAConsoleApplication();
            }
        }