BlazorInvoker<TInput>
is an encapsulation class designed as a generic invocation point from JS to C#. It's used for 'fire-and-forget' with no return value.
dotnet add package Soenneker.Blazor.Utils.BlazorInvoker
var stringInvoker = new BlazorInvoker<string>(async (input) =>
{
await SomeAsyncOperation(input);
});
dotnetObject.invokeMethodAsync('Invoke', 'JavaScript argument');