Initial code commit.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user