public static void RunAsApp(this IWebHost host) { Log.i("SRV", "Starting engine..."); EngineProcess process = (EngineProcess)host.Services.GetService(typeof(EngineProcess)); process.Start(); Log.i("SRV", "Engine started.."); Log.i("SRV", "Starting web host..."); host.Run(); }
public IActionResult Start() { Log.v(Tag, "Starting service."); engine.Start(); return(new NinHtmlResult("Starting service...")); }
protected override void OnStarting(string[] args) { process.Start(); base.OnStarting(args); }