| | |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | using System.Linq; |
| | | using System.Reflection; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using Autofac; |
| | |
| | | BearerFormat = "JWT", |
| | | Scheme = "Bearer" |
| | | }); |
| | | |
| | | #region å¯ç¨ä¸ææ³¨éåè½ |
| | | //WIDESEA_WebApiä¸çPropertyGroupæ·»å <GenerateDocumentationFile>true</GenerateDocumentationFile><!--å¯ç¨ä¸ææ³¨éåè½--> |
| | | //å¯ç¨ä¸ææ³¨éåè½ |
| | | var xmlFilename = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml"; |
| | | //IncludeXmlComments true æ¾ç¤ºæ§å¶å¨æ³¨é |
| | | c.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, xmlFilename), true); |
| | | #endregion |
| | | c.AddSecurityRequirement(new OpenApiSecurityRequirement |
| | | { |
| | | { |