EBCEYS.OSServiceHelper
1.0.0.1
See the version list below for details.
dotnet add package EBCEYS.OSServiceHelper --version 1.0.0.1
NuGet\Install-Package EBCEYS.OSServiceHelper -Version 1.0.0.1
<PackageReference Include="EBCEYS.OSServiceHelper" Version="1.0.0.1" />
<PackageVersion Include="EBCEYS.OSServiceHelper" Version="1.0.0.1" />
<PackageReference Include="EBCEYS.OSServiceHelper" />
paket add EBCEYS.OSServiceHelper --version 1.0.0.1
#r "nuget: EBCEYS.OSServiceHelper, 1.0.0.1"
#addin nuget:?package=EBCEYS.OSServiceHelper&version=1.0.0.1
#tool nuget:?package=EBCEYS.OSServiceHelper&version=1.0.0.1
EBCEYS.OSServiceHelper
��������:
����� �������������� ���������� ������ ServiceController
��� Windows.
���������� ��������� ��������� �������� � �� Windows.
� ������� ���������, �������� � ��������� �������� ������� sc.exe.
���������� �� ������ ������ ��������� ��������� IOSServiceHelper
� ��� ������������� ��� �� Windows WindowsServiceHelper
.
IOSServiceHelper
������� ��������� ��� ServiceHelper
.
�������� � ���� ��������� �������:
string ServiceName { get; }
- ��� ������.bool IsServiceExists();
- �������� ��� ������ �����������.bool IsServiceRunning();
- �������� ��� ������ ��������.bool IsServiceStoped();
- �������� ��� ������ �����������.void StartService(string[]? args = null, WaitForStatusModel waitFor = default);
- ������ ������.void StopService(bool stopDependetServices = false, WaitForStatusModel waitFor = default);
- ��������� ������.
IWindowsServiceHelper
��������� IOSServiceHelper
.
�������� � ���� ������ ��� ������ �� �������� Windows:
bool DeleteService(TimeSpan waitForExit);
- �������� ������.string? SetDescriptionForService(string description, WaitForStatusModel waitFor = default);
- ��������� �������� ��� ������.ServiceControllerStatus? GetServiceStatus();
- ��������� ������� ������.bool RecreateService();
- ������������ ��������ServiceController
.void InstallService(string path, InstallServiceStartMode startMode, WaitForStatusModel model = default);
- ��������� ������.void PauseService(WaitForStatusModel waitFor = default);
- ���������� ������ �� �����.
WindowsServiceHelper
�������������� ��������� IWindowsServiceHelper
��� ������ �� �������� windows.
����������� ������ �������������� �� ������ Debug.
�������
GitHub - EBCEYS.DayOfAllLoversService
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. |
-
net8.0-windows7.0
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.2)
- System.Management (>= 9.0.2)
- System.ServiceProcess.ServiceController (>= 9.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.