示例#1
0
        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();
        }
示例#2
0
 public IActionResult Start()
 {
     Log.v(Tag, "Starting service.");
     engine.Start();
     return(new NinHtmlResult("Starting service..."));
 }
示例#3
0
 protected override void OnStarting(string[] args)
 {
     process.Start();
     base.OnStarting(args);
 }