/// <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"); }
/// <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); }