diff options
Diffstat (limited to 'samples/1.0.0-beta5/HelloMvc/Startup.cs')
-rw-r--r-- | samples/1.0.0-beta5/HelloMvc/Startup.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/samples/1.0.0-beta5/HelloMvc/Startup.cs b/samples/1.0.0-beta5/HelloMvc/Startup.cs new file mode 100644 index 0000000000..5f198a4dcb --- /dev/null +++ b/samples/1.0.0-beta5/HelloMvc/Startup.cs @@ -0,0 +1,25 @@ +using Microsoft.AspNet.Builder; +using Microsoft.Framework.DependencyInjection; +using Microsoft.Framework.Logging; + +namespace HelloMvc +{ + public class Startup + { + public void ConfigureServices(IServiceCollection services) + { + services.AddMvc(); + } + + public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) + { + loggerFactory.AddConsole(); + + app.UseErrorPage(); + + app.UseMvcWithDefaultRoute(); + + app.UseWelcomePage(); + } + } +}
\ No newline at end of file |