microsoft / WinDbg-Samples

Sample extensions, scripts, and API uses for WinDbg.
MIT License
719 stars 120 forks source link

Pass SynchronizationContext to Dbgx.DebugEngine #53

Open ibebbs opened 2 years ago

ibebbs commented 2 years ago

Hi,

I'm loving the 'Microsoft.Debugging.Platform.DbgX' package and seeing some early successes from it's use.

One frustration however is the use of the SynchronizationContext.Current static value. Would it be possible to pass the SynchronizationContext to use into the DebugEngine constructor? This would simplify it's use and facilite synchronization with other frameworks such as RX.

BTW, I'd happily submit a PR for this but Microsoft.Debugging.Platform.DbgX doesn't seem to be open-source (links from the Nuget page direct to Microsoft.Windows.SDK.Contracts).

Thanks, Ian

TimMisiak commented 2 years ago

Yes, I can update that. Thanks for the feedback!

The plan is to open source DbgX at some point, but I don't know when.

TimMisiak commented 2 years ago

This is in PR now, and should make it into the next release.