Skip to content

Commit 1072de8

Browse files
author
Marcin Drobik
committed
Cleaning/fixing program.cs
1 parent 82e8430 commit 1072de8

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

src/React.Sample.Owin/Program.cs

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,9 @@
99

1010
using System;
1111

12-
using Microsoft.Owin.FileSystems;
1312
using Microsoft.Owin.Hosting;
14-
using Microsoft.Owin.StaticFiles;
1513
using Microsoft.Owin.StaticFiles.Infrastructure;
1614

17-
using Owin;
18-
19-
using React.Owin;
20-
2115
namespace React.Sample.Owin
2216
{
2317
class Program
@@ -30,37 +24,4 @@ static void Main(string[] args)
3024
}
3125
}
3226
}
33-
34-
public class Startup
35-
{
36-
public void Configuration(IAppBuilder app)
37-
{
38-
#if DEBUG
39-
app.UseErrorPage();
40-
#endif
41-
42-
app.Use(
43-
async (context, next) =>
44-
{
45-
Console.WriteLine("{0} {1} {2}", context.Request.Method, context.Request.Path, context.Request.QueryString);
46-
47-
try
48-
{
49-
await next();
50-
}
51-
catch (Exception exception)
52-
{
53-
Console.WriteLine(exception.ToString());
54-
throw;
55-
}
56-
});
57-
58-
var contentFileSystem = new PhysicalFileSystem("Content");
59-
60-
app.UseJsxFiles(new JsxFileOptions() { StaticFileOptions = new StaticFileOptions() { FileSystem = contentFileSystem }});
61-
app.UseFileServer(new FileServerOptions() { FileSystem = contentFileSystem });
62-
}
63-
}
64-
65-
6627
}

0 commit comments

Comments
 (0)