up 7.10.2

This commit is contained in:
2dust 2025-03-04 15:11:05 +08:00
parent 859299c712
commit 8d1853e991
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<Version>7.10.1</Version>
<Version>7.10.2</Version>
</PropertyGroup>
<PropertyGroup>

View file

@ -109,7 +109,7 @@ namespace ServiceLib.Handler
task.Settings.RunOnlyIfIdle = false;
task.Settings.IdleSettings.StopOnIdleEnd = false;
task.Settings.ExecutionTimeLimit = TimeSpan.Zero;
task.Triggers.Add(new Microsoft.Win32.TaskScheduler.LogonTrigger { UserId = logonUser, Delay = TimeSpan.FromSeconds(20) });
task.Triggers.Add(new Microsoft.Win32.TaskScheduler.LogonTrigger { UserId = logonUser, Delay = TimeSpan.FromSeconds(30) });
task.Principal.RunLevel = Microsoft.Win32.TaskScheduler.TaskRunLevel.Highest;
task.Actions.Add(new Microsoft.Win32.TaskScheduler.ExecAction(fileName.AppendQuotes(), null, Path.GetDirectoryName(fileName)));