public static void UseUrlFactory(this IAppBuilder app) { // default config var config = new UrlRequestConfiguration(); app.Use<UrlFactoryMiddleware>(config); }
public void Init(HttpApplication context) { var config = new UrlRequestConfiguration(); _pipeline = new UrlRequestPipeline(config); context.BeginRequest += Context_BeginRequest; }
public UrlFactoryMiddleware(OwinMiddleware next, UrlRequestConfiguration config) : base(next) { _pipeline = new UrlRequestPipeline(config); }