Daily processing. Remove isShutdown logic from GBPriceCache.
Some checks failed
Build .NET Project / build (push) Has been cancelled

This commit is contained in:
2026-03-11 20:25:41 -04:00
parent 946ef2ba54
commit 1b2bcf678c
3 changed files with 15 additions and 18 deletions

View File

@@ -48,7 +48,6 @@ namespace MarketData.Cache
private Thread cacheMonitorThread = null;
private volatile bool threadRun = true;
private Object thisLock = new Object();
private static volatile bool isShutdown = false;
private CacheSnapshot snapshot;
private DateGenerator dateGenerator = new DateGenerator();
@@ -73,7 +72,6 @@ namespace MarketData.Cache
{
lock (typeof(GBPriceCache))
{
if (isShutdown) throw new ObjectDisposedException(nameof(GBPriceCache), "Cache has been shut down.");
if (null == priceCacheInstance)
{
priceCacheInstance = new GBPriceCache();
@@ -100,7 +98,6 @@ namespace MarketData.Cache
lock (thisLock)
{
if (null == priceCacheInstance || !threadRun) return;
isShutdown = true;
threadRun = false;
if (null != cacheMonitorThread)
{