/// <summary> /// Creates a new <see cref="T:Netty.AspServerListener" /> in its own application domain, and begins listening for HTTP traffic. /// </summary> private void CreateListenerAndStart() { var parts = CreateListnerWithinAppDomain(_config.Initializer); _listener = (AspServerListener)parts.Item1; var initializer = (IAspInitializer)parts.Item2; _listener.ApplyConfiguration(_config, initializer); _listener.StartListening(); while (_isRunning) { _listener.ProcessRequest(); } }