public CMPCache(string cacheFolderPathString, long sizeLimitInKB)
 {
     _cacheFolderPathString = PrepareFoldePath(cacheFolderPathString);
     _sizeLimitInKB         = sizeLimitInKB;
     _cacheSemaphore        = new SemaphoreSlim(1);
     _fileManagerProxy      = new CMPFileManagerProxy(_cacheFolderPathString);
 }
        private string PrepareFoldePath(string cacheFolderPathString)
        {
            if (string.IsNullOrEmpty(cacheFolderPathString))
            {
                return(null);
            }

            var baseFolderPathString = cacheFolderPathString + _kCachedFolderNameString;
            var couldPrepare         = CMPFileManagerProxy.PrepareFoldePath(baseFolderPathString);

            return((couldPrepare == true) ? baseFolderPathString : null);
        }