Skip to content

This project contains utilities that make Blazor WASM C# interfacing with JavaScript easier, will trigger corresponding JavaScript functionality. Includes Scenario Testing Blazor WASM website in the Sample project.

License

Notifications You must be signed in to change notification settings

canhorn/EventHorizon.Blazor.Interop

Repository files navigation

Build Status Nuget

GitHub GitHub tag (latest SemVer pre-release)

About

The EventHorizon.Blazor.Interop is a slim WASM project I created to help with common Blazor JavaScript Interop actions.

Usage

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;
    }
}

Sample

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.

Use Libraries

MediatR

Inspiration

Future Work

  • Look at binary serialization between the layers.

About

This project contains utilities that make Blazor WASM C# interfacing with JavaScript easier, will trigger corresponding JavaScript functionality. Includes Scenario Testing Blazor WASM website in the Sample project.

Topics

Resources

License

Stars

Watchers

Forks