public static IConveyBuilder AddSwaggerDocs(this IConveyBuilder builder, Func <ISwaggerOptionsBuilder, ISwaggerOptionsBuilder> buildOptions) { var options = buildOptions(new SwaggerOptionsBuilder()).Build(); return(builder.AddSwaggerDocs(options)); }
public static IConveyBuilder AddSwaggerDocs(this IConveyBuilder builder, string sectionName = SectionName) { if (string.IsNullOrWhiteSpace(sectionName)) { sectionName = SectionName; } var options = builder.GetOptions <SwaggerOptions>(sectionName); return(builder.AddSwaggerDocs(options)); }
public static IConveyBuilder AddSwaggerDocs(this IConveyBuilder builder, string sectionName = SectionName) { var options = builder.GetOptions <SwaggerOptions>(sectionName); return(builder.AddSwaggerDocs(options)); }