示例#1
0
        public void Dispose()
        {
            if (webapp != null)
            {
                webapp.Dispose();
                webapp = null;
            }

            if (startup != null)
            {
                startup.WaitForShutdown(TimeSpan.FromMinutes(1));
                startup = null;
            }
        }
示例#2
0
        public void Dispose()
        {
            if (webapp != null)
            {
                webapp.Dispose();
                webapp = null;
            }

            if (startup != null)
            {
                startup.WaitForShutdown(TimeSpan.FromMinutes(1));
                startup = null;
            }
        }
示例#3
0
        private void Stop()
        {
            lock (startStopLock)
            {
                if (webapp != null)
                {
                    webapp.Dispose();
                    webapp = null;
                }

                if (startup != null)
                {
                    startup.WaitForShutdown(TimeSpan.FromSeconds(5));
                    startup = null;
                }
            }
        }
示例#4
0
 protected virtual void WebAppStartup(IAppBuilder app)
 {
     startup = new CustomStartup(this);
     startup.Configuration(app);
 }
示例#5
0
 protected virtual void WebAppStartup(IAppBuilder app)
 {
     startup = new CustomStartup(this);
     startup.Configuration(app);
 }