Example #1
0
 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
 public void Configure(IApplicationBuilder app, IHostingEnvironment env)
 {
     FooConfiguration.Configure(app, host =>
                                host.UseStaticFiles()
                                .UseAuthentication()
                                .UseExceptionHandler("/Home/Error"));
 }
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            FooConfiguration.Configure(app, host =>
            {
                if (env.IsDevelopment())
                {
                    host.UseBrowserLink();
                    host.UseDeveloperExceptionPage();
                }
                else
                {
                    host.UseExceptionHandler("/Home/Error");
                }

                host.UseStaticFiles();

                return(host);
            });
        }
Example #3
0
 public void Configure(IApplicationBuilder app)
 {
     FooConfiguration.Configure(app, host => host.UseAuthentication());
 }
Example #4
0
 public void Configure(IApplicationBuilder app)
 {
     FooConfiguration.Configure(app, host => host);
 }