Exemplo n.º 1
0
 /// <summary>
 /// Подключить Basic Auth (versionName = "basicauth")
 /// </summary>
 /// <param name="services"></param>
 /// <param name="xmlPath"></param>
 public static void AddSwaggerBasicAuthSecurityDefinitions(this IServiceCollection services, string xmlPath)
 {
     SwaggerGenDefinition.SwaggerBasicAuthStartupService(services, xmlPath, null, "basicauth");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Подключить Basic Auth (versionName = "basicauth")
 /// </summary>
 /// <param name="services"></param>
 /// <param name="xmlPath"></param>
 /// <param name="swaggerInfo"></param>
 /// <param name="versionName"></param>
 public static void AddSwaggerBasicAuthSecurityDefinitions(this IServiceCollection services, string xmlPath, OpenApiInfo swaggerInfo = null, string versionName = "basicauth")
 {
     SwaggerGenDefinition.SwaggerBasicAuthStartupService(services, xmlPath, swaggerInfo, versionName);
 }