コード例 #1
0
        public static void AssemblyInitFunction(TestContext context)
        {
            EnvironmentFactoryFactory.Initialize(context.Properties);

            DtoMapper.Setup();

            SettingInitializer.Init();
        }
コード例 #2
0
        public static void AssemblyInitFunction(TestContext context)
        {
            EnvironmentFactoryFactory.Initialize(context.Properties);

            AssemblyResolver.Initialize();
            DtoMapper.Setup();

            var environmentFactory = EnvironmentFactoryFactory.Create();

            if (environmentFactory.TelemetryEnvironment.DataSinkCurrent != null)
            {
                SettingInitializer.Init();
            }
        }
コード例 #3
0
        public Startup(IHostingEnvironment env, IApplicationEnvironment appEnv)
        {
            _appEnv = appEnv;

            AssemblyResolver.Initialize();

            Framework.Logging.NLogLogger.SetConfiguration(
                Path.Combine(Path.Combine(appEnv.ApplicationBasePath, "config"), "web.nlog"));

            DtoMapper.Setup();

            ServicePointManager.DefaultConnectionLimit = 10000;
            ServicePointManager.Expect100Continue      = false;
            ServicePointManager.UseNagleAlgorithm      = false;
        }