public static IServiceCollection ConfigureFrameworkOptions(this IServiceCollection services, FrameworkOptionsBuilder builder) { var original = builder.Build(); return(services.Configure <FrameworkOptions>(opt => opt.CopyFrom(original))); }
public static void Setup() { TempAssemblyList = ReflectionHelper.GetAllAssemblies( rootPath: AppHelper.GetAppContextBaseDirectory(), searchPattern: "TFW.Docs.*.dll", excludedRelativeDirPaths: WebApiConsts.ExcludedAssemblyDirs); FrameworkOptionsBuilder = new FrameworkOptionsBuilder(); FrameworkOptionsBuilder.ScanShouldSkipFilterTypes( typeof(Startup).Assembly, new[] { typeof(BaseApiController).Namespace }); }
public static void Clean() { TempAssemblyList = null; FrameworkOptionsBuilder = null; }