This fixes using BlazorRedux in server-hosted Blazor apps (for instance, Blazor.platform is not available for server-hosted apps since those use blazor.server.js)
Applied 0.5.0 improvements for interop:
added JSInvokable for JS to .Net interop
replaced Blazor.platform.callMethod with DotNet.invokeMethodAsync when calling .Net methods from JS
replaced ((IJSInProcessRuntime)JSRuntime.Current).Invoke with JSRuntime.Current.InvokeAsync to support out-of-process scenarios
@torhovland forgot to mention: this can be merged separately from my other PR (#15)
If you need more info about this or have any remarks, feel free to let me know!
This fixes using BlazorRedux in server-hosted Blazor apps (for instance, Blazor.platform is not available for server-hosted apps since those use blazor.server.js)
Applied 0.5.0 improvements for interop: