-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from dotnet-campus/t/lindexi/TestIpc
修复在 Linux 平台因为抛出 PlatformNotSupportedException 异常而无法找到调试项目
- Loading branch information
Showing
3 changed files
with
126 additions
and
17 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
UnoSpySnoop/Lib/UnoSpySnoopDebugger.IpcCommunicationContext/DebugIpcPeerNameGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace UnoSpySnoopDebugger.IpcCommunicationContext; | ||
|
||
public static class DebugIpcPeerNameGenerator | ||
{ | ||
public static string GetPeerNameFromProcess(Process process) | ||
{ | ||
return $"UnoSpySnoop_{process.ProcessName.Replace('/', '_')}_{process.Id}"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters