Esempio n. 1
0
 /// <inheritdoc />
 public void Dispose()
 {
     timerCts?.Dispose();
     Configuration.Dispose();
     Chat.Dispose();
     Watchdog.Dispose();
     dmbFactory.Dispose();
     RepositoryManager.Dispose();
 }
Esempio n. 2
0
        /// <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();
            }
        }