using Microsoft.JSInterop; using Moonlight.Frontend.Models; namespace Moonlight.Frontend.Services; public class FrontendService { private readonly IJSRuntime JsRuntime; public FrontendService(IJSRuntime jsRuntime) { JsRuntime = jsRuntime; } public async Task GetConfigurationAsync() { return await JsRuntime.InvokeAsync("frontendConfig.getConfiguration"); } public async Task ReloadAsync() { await JsRuntime.InvokeVoidAsync("frontendConfig.reload"); } }