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

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