Beispiel #1
0
        public static IServiceCollection ConfigureFrameworkOptions(this IServiceCollection services,
                                                                   FrameworkOptionsBuilder builder)
        {
            var original = builder.Build();

            return(services.Configure <FrameworkOptions>(opt => opt.CopyFrom(original)));
        }
Beispiel #2
0
        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 });
        }
Beispiel #3
0
 public static void Clean()
 {
     TempAssemblyList        = null;
     FrameworkOptionsBuilder = null;
 }