예제 #1
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();
            }
        }