Esempio n. 1
0
    public ShellAppBuilder <TAppBuilder> Startup(StartupDelegate startup)
    {
        startupFactory = (IShell shell, IConfiguration configuration, IContainer container)
                         => new DelegatedStartup(shell, configuration, container, startup);

        return(this);
    }
Esempio n. 2
0
 public DelegatedStartup(IShell shell, IConfiguration configuration, IContainer container, StartupDelegate startup)
     : base(shell, configuration, container)
 {
     this.startup = startup ?? throw new ArgumentNullException(nameof(startup));
 }