The EventHorizon.Blazor.Interop is a slim WASM project I created to help with common Blazor JavaScript Interop actions.
This library requires the usage of the IJSRuntime, you will need to attach one manually before usage.
In "App.razor"
@code {
[Inject]
public IJSRuntime JSRuntime { get; set; }
protected override void OnInitialized()
{
EventHorizonBlazorInterop.JSRuntime = JSRuntime;
}
}
The EventHorizon.Blazor.Interop.Sample Project contains a suite of performance tests I created to help me verify the performance scenarios I will be using.
- Look at binary serialization between the layers.