mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-15 15:19:57 +00:00
0a0ec5cefc
Co-authored-by: Alexandru Macocian <amacocian@microsoft.com>
18 lines
521 B
C#
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;
|
|
}
|
|
}
|