optimization update, web scheduler test-integration
This commit is contained in:
parent
3c9ccaafeb
commit
1591618c2c
103 changed files with 4826 additions and 1502 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue