public void Dispose()
        {
            DisposeSaveTimer();

            DisposeUpdateTimer();

            syncRoot.Dispose();

            savingSemaphore.Dispose();

            PriceHistoryManager.Dispose();
        }
Exemplo n.º 2
0
        public void Dispose()
        {
            syncRoot?.Dispose();
            syncRoot = null;

            savingSemaphore?.Dispose();
            savingSemaphore = null;

            saveTimer?.Stop();
            saveTimer?.Dispose();
            saveTimer = null;

            updateTimer?.Stop();
            updateTimer?.Dispose();
            updateTimer = null;

            PriceHistoryManager?.Dispose();
            PriceHistoryManager  = null;
            TradesHistoryManager = null;
        }