Files
Daybreak/Daybreak.Windows/Services/Api/PidProvider.cs
T
2026-06-30 17:09:16 +02:00

18 lines
521 B
C#

using Daybreak.Shared.Services.Api;
namespace Daybreak.Windows.Services.Api;
/// <summary>
/// Windows implementation of <see cref="IPidProvider"/>.
/// On Windows, the reported PID is the actual system PID, so this is a pass-through.
/// </summary>
public sealed class PidProvider : IPidProvider
{
/// <inheritdoc />
public int ResolveSystemPid(int reportedPid, string executableName, int? port = null)
{
// On Windows, the reported PID is the actual system PID
return reportedPid;
}
}