Пример #1
0
        internal void Dispose()
        {
            SRefMultiple sref = _sizedRef;

            if (sref != null && Interlocked.CompareExchange(ref _sizedRef, null, sref) == sref)
            {
                sref.Dispose();
            }
        }
        internal void Dispose()
        {
            SRefMultiple sref = _sizedRef;

            if (sref != null && Interlocked.CompareExchange(ref _sizedRef, null, sref) == sref)
            {
                sref.Dispose();
            }
            ApplicationManager appManager = HostingEnvironment.GetApplicationManager();

            if (appManager != null)
            {
                long sizeUpdate = (0 - _cacheSizeSamples[_idx]);
                appManager.GetUpdatedTotalCacheSize(sizeUpdate);
            }
        }