blazor-redux icon indicating copy to clipboard operation
blazor-redux copied to clipboard

Update interop

Open pver opened this issue 6 years ago • 1 comments

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

pver avatar Jan 03 '19 14:01 pver

@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!

pver avatar Jan 04 '19 09:01 pver