public void Dispose() { if (webapp != null) { webapp.Dispose(); webapp = null; } if (startup != null) { startup.WaitForShutdown(TimeSpan.FromMinutes(1)); startup = null; } }
private void Stop() { lock (startStopLock) { if (webapp != null) { webapp.Dispose(); webapp = null; } if (startup != null) { startup.WaitForShutdown(TimeSpan.FromSeconds(5)); startup = null; } } }
protected virtual void WebAppStartup(IAppBuilder app) { startup = new CustomStartup(this); startup.Configuration(app); }