AspNetCore.Docs/aspnet/fundamentals/static-files/sample/StartupEmpty.cs

22 lines
639 B
C#
Raw Normal View History

using Microsoft.AspNetCore.Builder;
2016-06-10 09:09:05 +08:00
using Microsoft.Extensions.DependencyInjection;
namespace StaticFiles
2016-06-10 09:09:05 +08:00
{
public class StartupEmpty
{
// This method gets called by the runtime. Use this method to add services to the container.
2016-06-10 09:09:05 +08:00
public void ConfigureServices(IServiceCollection services)
{
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
// >Configure
2016-06-10 09:09:05 +08:00
public void Configure(IApplicationBuilder app)
{
app.UseDefaultFiles();
app.UseStaticFiles();
}
// <Configure
2016-06-10 09:09:05 +08:00
}
}