Inheritance: DefaultNancyBootstrapper
Exemplo n.º 1
0
        public IServiceProvider ConfigureServices(IServiceCollection services)
        {
            var bootstrapper = new MyBootstrapper();

            Container = new Container();

            Container.Populate(bootstrapper);

            Container.Populate(services);

            return Container.GetInstance<IServiceProvider>();
        }
Exemplo n.º 2
0
        public IServiceProvider ConfigureServices(IServiceCollection services)
        {
            var bootstrapper = new MyBootstrapper();

            var builder = new ContainerBuilder();

            builder.Populate(bootstrapper);

            builder.Populate(services);

            Container = builder.Build();

            return Container.Resolve<IServiceProvider>();
        }
Exemplo n.º 3
0
 public void SetUp()
 {
     this.bootstrapper = new MyBootstrapper <RootViewModel>();
 }
Exemplo n.º 4
0
 protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     var btsr = new MyBootstrapper();
     btsr.Run();
 }