/// <summary> /// Starts this FastCgi server! This method only returns when the server is ready to accept connections. /// </summary> /// <param name="background">True to start the server without blocking, false to block.</param> public override void Start(bool background) { AppBuilder = new FosAppBuilder(OnAppDisposal.Token); // Configure the application and build our pipeline entry. This must happen BEFORE BUILDING THE LOGGER ApplicationConfigure(AppBuilder); OwinPipelineEntry = (OwinHandler)AppBuilder.Build(typeof(OwinHandler)); // Sets the logger var logger = BuildLogger(); if (logger != null) { base.SetLogger(logger); } base.Start(background); }
/// <summary> /// Starts this FastCgi server! This method only returns when the server is ready to accept connections. /// </summary> /// <param name="background">True to start the server without blocking, false to block.</param> public override void Start(bool background) { AppBuilder = new FosAppBuilder(OnAppDisposal.Token); // Configure the application and build our pipeline entry. This must happen BEFORE BUILDING THE LOGGER ApplicationConfigure(AppBuilder); OwinPipelineEntry = (OwinHandler)AppBuilder.Build(typeof(OwinHandler)); // Sets the logger var logger = BuildLogger(); if (logger != null) { base.SetLogger(logger); } // // Signs up for important events, then starts the listener // FastCgiListener.OnReceiveBeginRequestRecord += OnReceiveBeginRequest; // FastCgiListener.OnReceiveParamsRecord += OnReceiveParams; // FastCgiListener.OnReceiveStdinRecord += OnReceiveStdin; base.Start(background); }