internal static CacheImpl GetInstance([CallerMemberName] string callerName = "") { var instance = new CacheImpl(); InstanceFactory(ref instance, callerName); return(instance); }
public bool IsClusterInStateTransfer() { if (CacheImpl != null) { return(CacheImpl.IsClusterInStateTransfer()); } return(false); }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or /// resetting unmanaged resources. /// </summary> /// <param name="disposing"></param> private void Dispose(bool disposing) { lock (this) { if (SerializationContext != null) { CompactFormatterServices.UnregisterAllCustomCompactTypes(SerializationContext); } if (PerfStatsColl != null) { PerfStatsColl.Dispose(); PerfStatsColl = null; } if (ExpiryMgr != null) { ExpiryMgr.Dispose(); ExpiryMgr = null; } if (MessageManager != null) { MessageManager.StopMessageProcessing(); MessageManager = null; } if (CacheImpl != null) { CacheImpl.Dispose(); CacheImpl = null; } if (TimeSched != null) { TimeSched.Dispose(); TimeSched = null; } if (AsyncProc != null) { AsyncProc.Stop(); AsyncProc = null; } if (HealthCollectorTimeSched != null) { HealthCollectorTimeSched.Dispose(); HealthCollectorTimeSched = null; } if (disposing) { GC.SuppressFinalize(this); } } }
static partial void InstanceFactory(ref CacheImpl instance, [CallerMemberName] string callerName = "");
public VirtualListBase(int numCacheBlocks, int cacheBlockLength) { // _Count = UninitializedCount; Cache = new CacheImpl(InternalLoad, numCacheBlocks, cacheBlockLength, this); }
/// <summary> /// Gets cache from specified native cache object. /// </summary> /// <param name="nativeCache">Native cache.</param> /// <param name="keepPortable">Portable flag.</param> /// <returns> /// New instance of cache wrapping specified native cache. /// </returns> public ICache <TK, TV> Cache <TK, TV>(IUnmanagedTarget nativeCache, bool keepPortable = false) { var cacheImpl = new CacheImpl <TK, TV>(this, nativeCache, _marsh, false, keepPortable, false, false); return(new CacheProxyImpl <TK, TV>(cacheImpl)); }
public bool IsClusterAvailableForMaintenance() { return(CacheImpl.IsClusterAvailableForMaintenance()); }
public bool IsClusterUnderMaintenance() { return(CacheImpl.IsClusterUnderMaintenance()); }
public void ExitMaintenance() { CacheImpl.ExitMaintenance(true); }