Skip to content

Commit

Permalink
尝试捕获读取平台不支持异常
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Apr 1, 2024
1 parent eb6b055 commit 04a32df
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions UnoSpySnoop/UI/UnoSpySnoopDebugger/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,22 @@ private async Task PeekProcess(Process process)
ProcessName = response.ProcessName,
};

DispatcherQueue.TryEnqueue(() =>
{
ProcessInfoList.Add(info);
});
DispatcherQueue.TryEnqueue(() => { ProcessInfoList.Add(info); });
}
catch (IpcClientPipeConnectionException e)
{
// Connection Fail
Console.WriteLine($"Connection Fail {peerName}");
}
catch (PlatformNotSupportedException e)
{
Console.WriteLine($"PlatformNotSupportedException {peerName} {e}");
Console.Read();
}
catch (Exception e)
{
Console.WriteLine(e);
}
}

public JsonIpcDirectRoutedProvider IpcProvider { get; set; }
Expand Down

0 comments on commit 04a32df

Please sign in to comment.