optimization update, web scheduler test-integration

This commit is contained in:
kkb 2023-12-14 11:09:03 +01:00
parent 3c9ccaafeb
commit 1591618c2c
103 changed files with 4826 additions and 1502 deletions

View file

@ -1,14 +1,37 @@
@using Vaitr.Bus;
@inherits ComponentBase
@implements IDisposable
@inject SessionHandler SessionHandler
@inject Bus Bus
@code {
private bool _disposed;
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
if (firstRender) await SessionHandler.UpdateStateAsync(default);
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
private void Dispose(bool disposing)
{
if (_disposed is false) return;
if (disposing is false) return;
try
{
await SessionHandler.UpdateStateAsync(default);
}
finally
{
_disposed = true;
}
}
}