37 lines
No EOL
651 B
Text
37 lines
No EOL
651 B
Text
@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) 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
|
|
{
|
|
|
|
}
|
|
finally
|
|
{
|
|
_disposed = true;
|
|
}
|
|
}
|
|
} |