Esempio n. 1
0
        public static IBioWorldBuilder AddSwaggerDocs(this IBioWorldBuilder builder,
                                                      Func <ISwaggerOptionsBuilder, ISwaggerOptionsBuilder> buildOptions)
        {
            var options = buildOptions(new SwaggerOptionsBuilder()).Build();

            return(builder.AddSwaggerDocs(options));
        }
Esempio n. 2
0
        public static IBioWorldBuilder AddSwaggerDocs(this IBioWorldBuilder builder, string sectionName = SectionName)
        {
            if (string.IsNullOrWhiteSpace(sectionName))
            {
                sectionName = SectionName;
            }

            var options = builder.GetOptions <SwaggerOptions>(sectionName);

            return(builder.AddSwaggerDocs(options));
        }