@page "/Settings/Beacon" @using LANCommander.SDK @inject Client Client @inject IMessageService MessageService @inject ILogger Logger @attribute [Authorize(Roles = RoleService.AdministratorRoleName)]
Enabling the beacon will allow clients on the same network to auto-discover the LANCommander address. Use this to customize the name that is broadcasted to clients. Use this to customize the address that is broadcasted to clients. Default: http://<Server IP>:@context.Port
@code { Settings Settings = SettingService.GetSettings(); async Task Save() { try { SettingService.SaveSettings(Settings); MessageService.Success("Settings saved!"); if (Settings.Beacon.Enabled) await Client.Beacon.StartBeaconAsync(Settings.Beacon.Port, Settings.Beacon.Address, Settings.Beacon.Name); else await Client.Beacon.StopBeaconAsync(); } catch (Exception ex) { MessageService.Error("An unknown error occurred."); Logger.LogError(ex, "An unknown error occurred."); } } }