mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
add UI for Mare Data Analysis
This commit is contained in:
parent
405c0968da
commit
42da1855b1
12 changed files with 474 additions and 98 deletions
|
|
@ -32,7 +32,11 @@ public sealed class DtrEntry : IDisposable, IHostedService
|
|||
|
||||
public void Dispose()
|
||||
{
|
||||
_entry.Value.Dispose();
|
||||
if (_entry.IsValueCreated)
|
||||
{
|
||||
_logger.LogDebug("Disposing DtrEntry");
|
||||
Clear();
|
||||
}
|
||||
}
|
||||
|
||||
public Task StartAsync(CancellationToken cancellationToken)
|
||||
|
|
@ -51,15 +55,6 @@ public sealed class DtrEntry : IDisposable, IHostedService
|
|||
catch (OperationCanceledException) { }
|
||||
finally
|
||||
{
|
||||
_logger.LogDebug("Disposing DtrEntry");
|
||||
if (_entry.IsValueCreated)
|
||||
{
|
||||
Clear();
|
||||
|
||||
_entry.Value.Remove();
|
||||
_entry.Value.Dispose();
|
||||
}
|
||||
|
||||
_cancellationTokenSource.Dispose();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue