Files
EnvelopeGenerator/EnvelopeGenerator.Server/EnvelopeGenerator.Server/Options/WindowsServiceHostingOptions.cs
TekH e4ce91ee8b Add Windows Service support and version update
Updated project version to 2.2.0-beta. Added support for running the application as a Windows Service using `Microsoft.Extensions.Hosting.WindowsServices`. Introduced `WindowsServiceHostingOptions` for configuration, including `Enabled` and `ServiceName` properties.

Added a new configuration section in `appsettings.json` for Windows Service settings. Integrated service management logic in `Program.cs`. Included a batch script `manage-service.bat` for installing, uninstalling, and managing the Windows Service.
2026-11-30 09:27:01 +01:00

23 lines
461 B
C#

namespace EnvelopeGenerator.Server.Options;
/// <summary>
///
/// </summary>
public sealed class WindowsServiceHostingOptions
{
/// <summary>
///
/// </summary>
public const string SectionName = "WindowsServiceHosting";
/// <summary>
///
/// </summary>
public bool Enabled { get; set; }
/// <summary>
///
/// </summary>
public string ServiceName { get; set; } = "Digital Data Envelope Generator Server";
}