ServiceStack Service Calling Async Methods
async-await, asynchronous, c#, servicestack
Solution
You can mark ServiceStack methods with async but you will need to upgrade to version 4.
Problem
I've a ServiceStack service. Now inside a servicestack service methiod I need to call a Method from a component which is async implemented ``` async Task GetDataAsync(); ``` As the ServiceStack methods can't be marked async I'm wondering how the best way would be to call this method. ``` return GetDataAsync().Result; ``` Would smells from my point of view. Whats best practice for that?