public static void Configuration(IAppBuilder appBuilder) { var handler = new OwinHandler(); appBuilder .RescheduleCallbacks() .Run(Delegates.ToDelegate(handler.ProcessRequest)); }
public StatsPageMiddleware(OwinHandler next, StatsLogger logger) { if (logger == null) { throw new ArgumentNullException("You must provide an IServerLogger"); } Logger = logger; }
public StatsPageMiddleware(OwinHandler next, StatsLogger logger) { if (next != null) { throw new ArgumentNullException("This middleware must be the last in the pipeline"); } else if (logger == null) { throw new ArgumentNullException("You must provide an IServerLogger"); } Logger = logger; }
/// <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); }
public ShuntMiddleware(OwinHandler next, IDictionary <string, IAppBuilder> buildersPaths) { Next = next; Paths = buildersPaths ?? new Dictionary <string, IAppBuilder>(); }
public EmptyResponseApplication(OwinHandler ignoreNext) { }
public HelloWorldApplication(OwinHandler ignoreNext) { }
public ThrowsExceptionApplication(OwinHandler ignoreNext) { }