dotnet / dotnet-monitor

This repository contains the source code for .NET Monitor - a tool that allows you to gather diagnostic data from running applications using HTTP endpoints
MIT License
639 stars 113 forks source link

Poll for processes in `connect` mode #638

Open jander-msft opened 3 years ago

jander-msft commented 3 years ago

If collection rules are to be support for .NET Core 3.1 process or processes discovered via connect mode (dotnet-monitor reaches out to individual processes to establish diagnostic pipe connection), then process polling will need to be implemented. This will also require #49 to be completed in order to record which processes were already discovered in prior polling attempts.

jander-msft commented 2 years ago

It appears that rather than polling, the FileSystemWatcher can be used to discover when named pipes and Unix domain sockets are created and deleted. Polling can be added as a fallback for filesystems that do not support change notification.