https://github.com/soenneker/soenneker.blazor.utils.blazorinvoker
A generic invoker to simplify JavaScript to C# interaction
https://github.com/soenneker/soenneker.blazor.utils.blazorinvoker
blazor blazorinvoker csharp dotnet invoke invoker util utils
Last synced: 3 months ago
JSON representation
A generic invoker to simplify JavaScript to C# interaction
- Host: GitHub
- URL: https://github.com/soenneker/soenneker.blazor.utils.blazorinvoker
- Owner: soenneker
- License: mit
- Created: 2024-01-13T15:02:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-04-21T20:59:14.000Z (3 months ago)
- Last Synced: 2026-04-21T22:39:55.467Z (3 months ago)
- Topics: blazor, blazorinvoker, csharp, dotnet, invoke, invoker, util, utils
- Language: C#
- Homepage: https://soenneker.com
- Size: 1.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/soenneker.blazor.utils.blazorinvoker/)
[](https://github.com/soenneker/soenneker.blazor.utils.blazorinvoker/actions/workflows/publish-package.yml)
[](https://www.nuget.org/packages/soenneker.blazor.utils.blazorinvoker/)
[](https://github.com/soenneker/soenneker.blazor.utils.blazorinvoker/actions/workflows/codeql.yml)
#  Soenneker.Blazor.Utils.BlazorInvoker
### A generic invoker to simplify JavaScript to C# interaction
`BlazorInvoker` 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.
## Installation
```
dotnet add package Soenneker.Blazor.Utils.BlazorInvoker
```
## Usage
### C#
```csharp
var stringInvoker = new BlazorInvoker(async (input) =>
{
await SomeAsyncOperation(input);
});
```
### JS
```javascript
dotnetObject.invokeMethodAsync('Invoke', 'JavaScript argument');
```