public static void Main(string[] args) { Cfg.Init(); Task.Factory.StartNew(Call); var port = Cfg.GetCfg <int>("Port"); CreateWebHostBuilder(args).UseUrls("http://*:" + port + "/").Build().Run(); }
public static void Initialize(IWebHostEnvironment env) { Directory.SetCurrentDirectory(env.ContentRootPath); var name = env.IsDevelopment() ? null : env.EnvironmentName; Cfg.Init(name); }
public static void Main(string[] args) { Cfg.Init(); var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() .UseStartup <Startup>() .UseUrls("http://10.101.48.25:5000/") .Build(); host.Run(); Call(); }
public static void Run(Action action) { Cfg.Init(name); PlainText.Initialize(); try { sessionFactory(() => session(action)); } catch (Exception e) { e.TryLog(); throw; } }
public static void Start() { Cfg.Init(); setLogName(); setRepositories(); log("General", "BeforeTestRun"); TZ.Init(false); ControlMap.IsTest = true; SessionFactoryManager.Initialize <UserMap, User>(Cfg.DB); SessionManager.Init(getTicketKey); service = new ServiceAccess(getTicket, getSite); PlainText.Initialize(runPath); }
/// <summary> /// Entry point /// </summary> public static void Patch() { try { Log.Info("Started loading"); Cfg.Init(); LoadFabricatorTabs.Load(); LoadItem.DummySpriteTechTypes(); LoadItem.Load("Juice", 1); LoadItem.Load("Juice", 2); LoadItem.Load("Juice", 3); LoadItem.Load("Juice", 4); LoadItem.Load("Juice", 5); LoadItem.Load("Juice", 6); LoadItem.Load("Juice", 7); LoadItem.Load("Juice", 8); LoadItem.Load("Cake", 1); LoadItem.Load("Cake", 2); LoadItem.Load("Cake", 3); LoadItem.Load("Cake", 4); LoadItem.Load("Cake", 5); LoadItem.Load("Cake", 6); LoadItem.Load("Cake", 7); LoadItem.Load("Cake", 8); Log.Info("Finished loading"); } catch (Exception e) { Log.e(e); } }
public Step(ScenarioContext context) : base(context) { Cfg.Init(); PlainText.Initialize(runPath); }