Repository navigation
Single source of truth for System.Diagnostics.Processes annotations and docs - #68852
adamsitnik wants to merge 2 commits into
Conversation
|
Tagging subscribers to this area: @dotnet/area-system-serviceprocess Issue DetailsIn order to avoid API docs and compat inconsistencies (#68834 (review)), we could use the facade pattern. The only disadvantage I can see right now is having an additional method invocation. But since these methods usually perform a very expensive sys-call, I don't believe that it matters. I took @ericstj @stephentoub @jozkee please let me know if you believe that this is the right direction. If it is, I am going to refactor the rest of the
|
|
Tagging subscribers to this area: @dotnet/area-system-diagnostics-process Issue DetailsIn order to avoid API docs and compat inconsistencies (#68834 (review)), we could use the facade pattern. The only disadvantage I can see right now is having an additional method invocation. But since these methods usually perform a very expensive sys-call, I don't believe that it matters. I took @ericstj @stephentoub @jozkee please let me know if you believe that this is the right direction. If it is, I am going to refactor the rest of the
|
|
It'd be handy if there was such a thing as "partial properties" similar to methods, but it seems to be explicitly not supported: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/partial-method :( This makes sense to me since all of these are likely to be method calls anyway since they are not auto-properties. I bet the JIT will just inline these anyway. |
|
I am going to finish it once I am back from honeymoon |
In order to avoid API docs and compat inconsistencies (#68834 (review)), we could use the facade pattern. The only disadvantage I can see right now is having an additional method invocation. But since these methods usually perform a very expensive sys-call, I don't believe that it matters.
I took
ProcessThreadand experimented with it and got 316 deletions and 114 additions.@ericstj @stephentoub @jozkee please let me know if you believe that this is the right direction. If it is, I am going to refactor the rest of the
System.Diagnostics.ProcessesAPIs.