Client Hub Project

This commit is contained in:
2023-01-15 18:40:32 -07:00
parent f69a937b1f
commit 924c903b3b
865 changed files with 51668 additions and 1 deletions

View File

@ -0,0 +1,22 @@
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
namespace OI.Metrology.ClientHub.Pages;
public partial class RunHeaders
{
[Inject] protected IJSRuntime? JSRuntime { get; set; }
protected override Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
if (JSRuntime is null)
throw new NullReferenceException(nameof(JSRuntime));
return JSRuntime.InvokeVoidAsync("initRunHeaders").AsTask();
}
return Task.CompletedTask;
}
}