I have tried adding ServiceStack-references to a client-side Blazor project, but I run into problems after adding ServiceStack.HttpClient via NuGet.
Currently, VS2019 will tell me that:
Cannot find declaration of exported type 'System.Threading'
and when ask/look around, they say that:
Blazor is built using mono-wasm as the base .NET framework implementation, and in this case I believe it's a missing method in mono-wasm that's the issue.
and
at present Mono WASM has no support for threading; check the repo https://github.com/lrz/mono-wasm-mono for more info
Am I getting it correctly:
- ServiceStack requires
System.Threading
- WebAssembly and thus Blazor does not support references to
System.Threading
- Meaning that ServiceStack cannot be used in a Blazor app