@page "/"
@inject ESVariables es
@inject IPinnings PinningsService
@inject IRotatingConstants RotatingConstantsService
@inject IRCXrefs RCXrefsService
@inject ISCXrefs SCXrefsService
@inject IKeyways KeywaysService
@inject ICustomers CustomersService
KSP MasterKey
Welcome to KSP MasterKey
@code {
protected async override Task OnInitializedAsync()
{
// Get necessary tables for application
var pl = await PinningsService.GetPinningsAsync();
if (pl != null)
{
es.pinnings = pl.ToList();
}
var rl = await RotatingConstantsService.GetConstantsAsync();
if (rl != null)
{
es.rcs = rl.ToList();
}
var rcxl = await RCXrefsService.GetXrefsAsync();
if (rcxl != null)
{
es.rcXref = rcxl.ToList();
}
var scxl = await SCXrefsService.GetXrefsAsync();
if (scxl != null)
{
es.scXref = scxl.ToList();
}
es.UpdatedCores = new();
}
}