Is this the proper/safe way to create a ShowDialogAsync extension method on `Window`? [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 hours ago . Improve this question I had a need to call ShowDialog on a Window , but had to do so in a non-blocking way. This is the solution I came up with. I'm wondering if this violates any principles around Async / Await or if there is anything that I'm not seeing with this design. public