GetExactFileLocation() public static méthode

public static GetExactFileLocation ( string key, string filelocation ) : string
key string
filelocation string
Résultat string
Exemple #1
0
        static public void Remove(string key, string filelocation)
        {
            if (!Cache.CacheDic.IsEmpty)
            {
                SimpleObject value;
                Cache.CacheDic.TryRemove(filelocation + key, out value);
            }

            File.Delete(Storage.GetExactFileLocation(key, filelocation));
        }
Exemple #2
0
        static public void Remove(string key, string filelocation)
        {
            lock (Cache.LockObject)
            {
                Cache.CacheDic.Remove(filelocation + key);
            }

            lock (DB.LockObject)
            {
                File.Delete(Storage.GetExactFileLocation(key, filelocation));
            }
        }