/// <inheritdoc /> public void Dispose() { timerCts?.Dispose(); Configuration.Dispose(); Chat.Dispose(); Watchdog.Dispose(); dmbFactory.Dispose(); RepositoryManager.Dispose(); }
/// <inheritdoc /> public async ValueTask DisposeAsync() { using (LogContext.PushProperty("Instance", metadata.Id)) { timerCts?.Dispose(); Configuration.Dispose(); await Chat.DisposeAsync().ConfigureAwait(false); await Watchdog.DisposeAsync().ConfigureAwait(false); dmbFactory.Dispose(); RepositoryManager.Dispose(); } }