File tree Expand file tree Collapse file tree 6 files changed +17
-101
lines changed Expand file tree Collapse file tree 6 files changed +17
-101
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- #if NET45
2
- using System ;
1
+ using System ;
3
2
using Microsoft . AspNet ;
4
3
using Microsoft . AspNet . Abstractions ;
5
- using Owin ;
6
4
7
5
namespace ErrorPageSample
8
6
{
9
7
public class Startup
10
8
{
11
- public void Configuration ( IAppBuilder app )
9
+ public void Configuration ( IBuilder app )
12
10
{
13
- // Temporary bridge from katana to Owin
14
- app . UseBuilder ( ConfigurePK ) ;
15
- }
16
-
17
- private void ConfigurePK ( IBuilder builder )
18
- {
19
- builder . UseErrorPage ( ) ;
20
- builder . Run ( context =>
11
+ app . UseErrorPage ( ) ;
12
+ app . Run ( context =>
21
13
{
22
14
throw new Exception ( "Demonstration exception" ) ;
23
15
} ) ;
24
16
}
25
17
}
26
18
}
27
- #endif
Original file line number Diff line number Diff line change 3
3
"dependencies" : {
4
4
"Microsoft.AspNet.Diagnostics" : " " ,
5
5
"Microsoft.AspNet.HttpFeature" : " 0.1-alpha-*" ,
6
- "Microsoft.AspNet.Abstractions" : " 0.1-alpha-*"
6
+ "Microsoft.AspNet.Abstractions" : " 0.1-alpha-*" ,
7
+ "Microsoft.AspNet.Server.WebListener" : " 0.1-alpha-*" ,
8
+ "Microsoft.AspNet.Hosting" : " 0.1-alpha-*"
7
9
},
10
+ "commands" : { "web" : " Microsoft.AspNet.Hosting server.name=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001" },
8
11
"configurations" : {
9
- "net45" : {
10
- "dependencies" : {
11
- "Owin" : " 1.0" ,
12
- "Microsoft.Owin" : " 2.1.0" ,
13
- "Microsoft.Owin.Hosting" : " 2.1.0" ,
14
- "Microsoft.Owin.Host.HttpListener" : " 2.1.0" ,
15
- "Microsoft.AspNet.AppBuilderSupport" : " 0.1-alpha-*"
16
- }
17
- },
12
+ "net45" : {},
18
13
"k10" : {
19
14
"dependencies" : {
20
15
"System.Console" : " 4.0.0.0" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- #if NET45
2
- using Microsoft . AspNet ;
1
+ using Microsoft . AspNet ;
3
2
using Microsoft . AspNet . Abstractions ;
4
- using Owin ;
5
3
6
4
namespace WelcomePageSample
7
5
{
8
6
public class Startup
9
7
{
10
- public void Configuration ( IAppBuilder app )
8
+ public void Configuration ( IBuilder app )
11
9
{
12
- // Temporary bridge from katana to Owin
13
- app . UseBuilder ( ConfigurePK ) ;
14
- }
15
-
16
- private void ConfigurePK ( IBuilder builder )
17
- {
18
- builder . UseWelcomePage ( ) ;
10
+ app . UseWelcomePage ( ) ;
19
11
}
20
12
}
21
13
}
22
- #endif
Original file line number Diff line number Diff line change 3
3
"dependencies" : {
4
4
"Microsoft.AspNet.Diagnostics" : " " ,
5
5
"Microsoft.AspNet.HttpFeature" : " 0.1-alpha-*" ,
6
- "Microsoft.AspNet.Abstractions" : " 0.1-alpha-*"
6
+ "Microsoft.AspNet.Abstractions" : " 0.1-alpha-*" ,
7
+ "Microsoft.AspNet.Server.WebListener" : " 0.1-alpha-*" ,
8
+ "Microsoft.AspNet.Hosting" : " 0.1-alpha-*"
7
9
},
10
+ "commands" : { "web" : " Microsoft.AspNet.Hosting server.name=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001" },
8
11
"configurations" : {
9
- "net45" : {
10
- "dependencies" : {
11
- "Owin" : " 1.0" ,
12
- "Microsoft.Owin" : " 2.1.0" ,
13
- "Microsoft.Owin.Hosting" : " 2.1.0" ,
14
- "Microsoft.Owin.Host.HttpListener" : " 2.1.0" ,
15
- "Microsoft.AspNet.AppBuilderSupport" : " 0.1-alpha-*"
16
- }
17
- },
12
+ "net45" : { },
18
13
"k10" : {
19
14
"dependencies" : {
20
15
"System.Console" : " 4.0.0.0" ,
You can’t perform that action at this time.
0 commit comments