mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 09:24:58 +00:00
Update ServiceMain.cs
This commit is contained in:
parent
8734f3f24a
commit
4b63596c3a
|
@ -244,11 +244,21 @@ namespace WelsonJS.Service
|
|||
scriptControl.Reset();
|
||||
scriptControl.AddCode(scriptText);
|
||||
|
||||
// initialize
|
||||
Log(DispatchServiceEvent("start", new string[]
|
||||
// make the start arguments
|
||||
string[] startArguments;
|
||||
if (Environment.UserInteractive)
|
||||
{
|
||||
Environment.UserInteractive.ToString().ToLower()
|
||||
}));
|
||||
startArguments = new string[args.Length + 1];
|
||||
args.CopyTo(startArguments, 0);
|
||||
startArguments[args.Length] = "--user-interactive";
|
||||
}
|
||||
else
|
||||
{
|
||||
startArguments = args;
|
||||
}
|
||||
|
||||
// initialize
|
||||
Log(DispatchServiceEvent("start", startArguments));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user