File was renamed from HH.WCS.Mobox3/HH.WCS.Mobox3.EmersonWCS/App_Start/Startup.cs |
| | |
| | | using Owin; |
| | | using Swashbuckle.Application; |
| | | |
| | | [assembly: OwinStartup(typeof(HH.WCS.EmersonWcs.Startup))] |
| | | [assembly: OwinStartup(typeof(HH.WCS.Emerson.Startup))] |
| | | |
| | | namespace HH.WCS.EmersonWcs { |
| | | namespace HH.WCS.Emerson { |
| | | public class Startup { |
| | | public void Configuration(IAppBuilder app) { |
| | | // 有关如何配置应用程序的详细信息,请访问 https://go.microsoft.com/fwlink/?LinkID=316888 |
| | |
| | | config.MapHttpAttributeRoutes(); |
| | | config.EnableSwagger(c => { |
| | | c.SingleApiVersion("v1", "hh wms api"); |
| | | c.IncludeXmlComments(System.AppDomain.CurrentDomain.BaseDirectory + "\\HH.WCS.EmersonWcs.LISTA.xml"); |
| | | c.CustomProvider((defaultProvider) => new SwaggerCacheProvider(defaultProvider, $@"{System.AppDomain.CurrentDomain.BaseDirectory}\\HH.WCS.EmersonWcs.xml")); |
| | | c.IncludeXmlComments(System.AppDomain.CurrentDomain.BaseDirectory + "\\HH.WCS.Emerson.LISTA.xml"); |
| | | c.CustomProvider((defaultProvider) => new SwaggerCacheProvider(defaultProvider, $@"{System.AppDomain.CurrentDomain.BaseDirectory}\\HH.WCS.Emerson.xml")); |
| | | c.ResolveConflictingActions(apiDescriptions => apiDescriptions.First()); |
| | | } |
| | | ).EnableSwaggerUi(c => { |