You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System;
|
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
using Microsoft.AspNetCore.Mvc.Filters;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.ExceptionHandling;
|
|
|
|
|
|
|
|
namespace WmsWebApi
|
|
|
|
{
|
|
|
|
public class Startup
|
|
|
|
{
|
|
|
|
public void ConfigureServices(IServiceCollection services)
|
|
|
|
{
|
|
|
|
services.AddApplication<WmsWebApiHttpApiHostModule>();
|
|
|
|
|
|
|
|
services.AddControllersWithViews(options =>
|
|
|
|
{
|
|
|
|
options.Filters.Add(typeof(AbpExceptionFilterExtension));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
|
|
|
|
{
|
|
|
|
app.InitializeApplication();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|