As answered here, its enough to return a Task to make a ServiceStack service method async.
If I manually invoke a Service, as described here, I only have a non-awaitable ExecuteMessage
, and no ExecuteMessageAsync
. There is, in contrast, a method HostContext.AppHost.ExecuteServiceAsync
.
- Is there a reason for the lacking
ExecuteMessageAsync
? - I could do like
await Task.Run(() => ExecuteMessage(...))
, but it doesn't seem right to me.
Any input would be appreciated!