NancyFx覆盖默认的Bootstrapper ctor

时间:2017-02-14 16:04:49

标签: c# owin nancy

我已经实现了自己的Nancyfx Bootstrapper。

    public class MyBoot : DefaultNancyBootstrapper
    {
        protected override void ConfigureApplicationContainer(TinyIoCContainer container)
        {
            if(switch)
           {
               //some code here
           }

我想发送一个bool参数(开关) 通过Ctor或属性到这个类,但我不确定从哪里调用bootstrapper。你能从

发送一个参数
    return WebApp.Start<Startup1>("http://*:7002");

0 个答案:

没有答案
相关问题