I have a method with some code that does an await operation:
await
public async Task DoSomething() { var x = await ...; }
I need tha
Use Dispatcher.Invoke()
Dispatcher.Invoke()
public async Task DoSomething() { App.Current.Dispatcher.Invoke(async () => { var x = await ...; }); }