示例#1
0
        /// <summary>
        /// Configure boot
        /// </summary>
        /// <param name="builderDelegate">Builder delegete</param>
        /// <returns><see cref="Bootloader"/> for booting</returns>
        public static Bootloader Configure(Action <IBootBuilder> builderDelegate)
        {
            var builder = new BootBuilder();

            builderDelegate(builder);
            var boot       = builder.Build();
            var bootLoader = new Bootloader(boot);

            return(bootLoader);
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of <see cref="Bootloader"/>
 /// </summary>
 /// <param name="actualBootloader">The underlying nested <see cref="Dolittle.Booting.Bootloader"/></param>
 public Bootloader(Dolittle.Booting.Bootloader actualBootloader)
 {
     _actualBootloader = actualBootloader;
 }