Cleanup
This commit is contained in:
@@ -31,11 +31,11 @@
|
||||
|
||||
@code {
|
||||
private string _countdownString = "00:00:00";
|
||||
private System.Threading.Timer? _timer;
|
||||
private Timer? _timer;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
_timer = new System.Threading.Timer(_ =>
|
||||
_timer = new Timer(_ =>
|
||||
{
|
||||
UpdateCountdown();
|
||||
InvokeAsync(StateHasChanged);
|
||||
@@ -60,4 +60,5 @@
|
||||
{
|
||||
_timer?.Dispose();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user