protected override void ApplicationStartup(TinyIoC.TinyIoCContainer container, IPipelines pipelines) { BeforePipeline bp = new BeforePipeline(); // Since we are including the API in the Parking.UI package (because of server constraints) // we need to remove the prefix folder so the routes are taken correctly. bp.AddItemToStartOfPipeline(ctx => { ctx.Request.Url.Path = ctx.Request.Url.Path.Replace("/api", ""); return ctx.Response; }); pipelines.BeforeRequest += bp; // Register gzip compression pipelines.RegisterCompressionCheck(); base.ApplicationStartup(container, pipelines); }
protected override void ApplicationStartup(TinyIoC.TinyIoCContainer container, IPipelines pipelines) { BeforePipeline bp = new BeforePipeline(); // Since we are including the API in the Parking.UI package (because of server constraints) // we need to remove the prefix folder so the routes are taken correctly. bp.AddItemToStartOfPipeline(ctx => { ctx.Request.Url.Path = ctx.Request.Url.Path.Replace("/api", ""); return(ctx.Response); }); pipelines.BeforeRequest += bp; // Register gzip compression pipelines.RegisterCompressionCheck(); base.ApplicationStartup(container, pipelines); }
protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines) { base.ApplicationStartup(container, pipelines); pipelines.RegisterCompressionCheck(); this.Conventions.StaticContentsConventions.Add(StaticContentConventionBuilder.AddDirectory("st", "Static")); }
protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines) { base.ApplicationStartup(container, pipelines); pipelines.RegisterCompressionCheck(); }