public static void AssemblyInitFunction(TestContext context) { EnvironmentFactoryFactory.Initialize(context.Properties); DtoMapper.Setup(); SettingInitializer.Init(); }
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(); } }
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; }