25 lines
562 B
C#
25 lines
562 B
C#
using Microsoft.AspNet.Builder;
|
|
using Microsoft.Framework.DependencyInjection;
|
|
using Microsoft.Framework.Logging;
|
|
|
|
namespace GetDotnet
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
} |