| | |
| | | using Quartz; |
| | | using Quartz.Impl; |
| | | using Quartz.Spi; |
| | | using Swashbuckle.AspNetCore.SwaggerUI; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | |
| | | { |
| | | typeof(OpenApiGroup).GetEnumNames().ToList().ForEach(version => |
| | | { |
| | | |
| | | c.SwaggerDoc(version, new OpenApiInfo() |
| | | { |
| | | Title = $"新凯迪MesApi文档:{version}", |
| | | Version = version, |
| | | Description = $"Panda.Sewerage : {version} " |
| | | Description = $"Panda.Sewerage : {version} ", |
| | | }); |
| | | }); |
| | | |
| | | string basePath = Path.GetDirectoryName(typeof(Program).Assembly.Location); |
| | | string xmlPath = Path.Combine(basePath, "VueWebCoreApi.xml"); |
| | | c.IncludeXmlComments(xmlPath, true); |
| | | }); |
| | | #endregion |
| | | |
| | | // 设置配置 |
| | | AppSetting.SetAppSetting(Configuration.GetSection("ConnectionStrings")); |
| | | //log4net配置 |
| | |
| | | { |
| | | c.SwaggerEndpoint($"/swagger/{version}/swagger.json", $"{version}"); |
| | | }); |
| | | |
| | | }); |
| | | #endregion |
| | | app.UseHttpsRedirection(); |