fetch the physical path of file saved in cache
-
Hi, i am trying to implement cache managing using Microsft enterprise library. I want to fetch the physical path of my file saved in cache. i tried with reflection like this
Stream dcmStream = (IsolatedStorageFileStream)cache["key"];
string fullPath = dcmStream.GetType().GetField("m_FullPath",
BindingFlags.NonPublic | BindingFlags.Instance).GetValue(dcmStream).ToString();It is not working. Could you help me?
My small attempt...
-
Hi, i am trying to implement cache managing using Microsft enterprise library. I want to fetch the physical path of my file saved in cache. i tried with reflection like this
Stream dcmStream = (IsolatedStorageFileStream)cache["key"];
string fullPath = dcmStream.GetType().GetField("m_FullPath",
BindingFlags.NonPublic | BindingFlags.Instance).GetValue(dcmStream).ToString();It is not working. Could you help me?
My small attempt...
"It is not working" does not tell what the problem is. What is it doing wrong? Is there an error message, and what is it?
-
Hi, i am trying to implement cache managing using Microsft enterprise library. I want to fetch the physical path of my file saved in cache. i tried with reflection like this
Stream dcmStream = (IsolatedStorageFileStream)cache["key"];
string fullPath = dcmStream.GetType().GetField("m_FullPath",
BindingFlags.NonPublic | BindingFlags.Instance).GetValue(dcmStream).ToString();It is not working. Could you help me?
My small attempt...