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.
23 lines
461 B
C#
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";
|
|
}
|