Projektdateien hinzufügen.

This commit is contained in:
mr_sc
2026-08-19 19:27:41 +02:00
parent 0889f1f6c7
commit 7fe54c0785
32 changed files with 2406 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
using System;
using System.ServiceProcess;
using FileInterface.Scheduler;
namespace FileinterfaceCronScheduler
{
public sealed class FileinterfaceCronSchedulerService : ServiceBase
{
private SchedulerRuntime _runtime;
public FileinterfaceCronSchedulerService()
{
ServiceName = "FileinterfaceCronScheduler";
CanStop = true;
CanPauseAndContinue = false;
AutoLog = true;
}
protected override void OnStart(string[] args)
{
try
{
_runtime = RuntimeFactory.Create();
_runtime.Start();
}
catch
{
if (_runtime != null)
{
_runtime.Dispose();
_runtime = null;
}
throw;
}
}
protected override void OnStop()
{
if (_runtime != null)
{
_runtime.Dispose();
_runtime = null;
}
}
}
}