Initial code commit.

This commit is contained in:
2026-02-03 10:44:31 +08:00
parent 8927c5ae0e
commit d69fe2cc1f
99 changed files with 10839 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using Microsoft.JSInterop;
namespace Sufi.Demo.PeopleDirectory.UI.Client.Services
{
public class BoomerangService(
IJSRuntime jsRuntime
)
{
public async Task<bool> InitializeAsync(object config)
{
return await jsRuntime.InvokeAsync<bool>("boomerangHelper.init", config);
}
public async Task AddVariableAsync(string key, string value)
{
await jsRuntime.InvokeVoidAsync("boomerangHelper.addVar", key, value);
}
public async Task SendBeaconAsync()
{
await jsRuntime.InvokeVoidAsync("boomerangHelper.sendBeacon");
}
}
}