Daily processing. Remove isShutdown logic from GBPriceCache.
Some checks failed
Build .NET Project / build (push) Has been cancelled
Some checks failed
Build .NET Project / build (push) Has been cancelled
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user