public static void SetupSwagger(this SwaggerGenOptions options, IServiceCollection temporaryServiceCollection) { options.AddVersionedSwaggerDocuments( temporaryServiceCollection); options.AddSecurity(); options.DocInclusionPredicate( SwaggerGenHelper.AddControllerMethodToVersionedSwaggerDocumentPredicate); options.IncludeXmlComments( GetAssemblyXmlCommentsAbsolutePath()); }