public ShellAppBuilder <TAppBuilder> Startup(StartupDelegate startup) { startupFactory = (IShell shell, IConfiguration configuration, IContainer container) => new DelegatedStartup(shell, configuration, container, startup); return(this); }
public DelegatedStartup(IShell shell, IConfiguration configuration, IContainer container, StartupDelegate startup) : base(shell, configuration, container) { this.startup = startup ?? throw new ArgumentNullException(nameof(startup)); }