public CacheEntryDescriptor OpenCacheEntry(string key, CacheAccessMode accessRequested, bool blockingMode) { nsICacheEntryDescriptor descriptor = null; try { descriptor = _cacheSession.Instance.OpenCacheEntry(new nsACString(key), (IntPtr)(int)accessRequested, blockingMode); } catch (System.Runtime.InteropServices.COMException) { } catch (Exception) { } return(descriptor.Wrap(CacheEntryDescriptor.Create)); }
public CacheEntryDescriptor OpenCacheEntry(string key, CacheAccessMode accessRequested, bool blockingMode) { nsICacheEntryDescriptor descriptor = null; try { descriptor = _cacheSession.Instance.OpenCacheEntry(new nsACString(key), new IntPtr((int)accessRequested), blockingMode); } catch (System.Runtime.InteropServices.COMException comEx) { Debug.WriteLine(string.Format("COM Exception CODE={0},Message={1}", comEx.ErrorCode, comEx.Message)); } catch (Exception e) { Debug.WriteLine(string.Format("Exception Message={0}", e.Message)); } return(descriptor.Wrap(CacheEntryDescriptor.Create)); }
public CacheEntryDescriptor OpenCacheEntry( string key, CacheAccessMode accessRequested, bool blockingMode ) { nsICacheEntryDescriptor descriptor = null; try { descriptor = _cacheSession.Instance.OpenCacheEntry( new nsACString( key ), new IntPtr((int)accessRequested), blockingMode ); } catch (System.Runtime.InteropServices.COMException comEx) { Debug.WriteLine( string.Format( "COM Exception CODE={0},Message={1}", comEx.ErrorCode, comEx.Message ) ); } catch (Exception e) { Debug.WriteLine( string.Format( "Exception Message={0}", e.Message ) ); } return descriptor.Wrap( CacheEntryDescriptor.Create ); }
public CacheEntryDescriptor OpenCacheEntry(string key, CacheAccessMode accessRequested, bool blockingMode) { nsICacheEntryDescriptor descriptor = null; try { descriptor = _cacheSession.Instance.OpenCacheEntry(new nsACString(key), (IntPtr)(int)accessRequested, blockingMode); } catch ( System.Runtime.InteropServices.COMException ) { } catch ( Exception ) { } return ExtensionMethods.Wrap(descriptor, CacheEntryDescriptor.Create); //return descriptor.Wrap( CacheEntryDescriptor.Create ); }
public void AsyncOpenCacheEntry(string key, CacheAccessMode accessRequested, Action <CacheEntryDescriptor, CacheAccessMode, CacheOpenEntryStatus> callback) { _cacheSession.Instance.AsyncOpenCacheEntry(new nsACString(key), new IntPtr((int)accessRequested), new CacheListener(callback), false); }
public void AsyncOpenCacheEntry( string key, CacheAccessMode accessRequested,Action<CacheEntryDescriptor, CacheAccessMode, CacheOpenEntryStatus> callback ) { _cacheSession.Instance.AsyncOpenCacheEntry( new nsACString( key ),new IntPtr( (int) accessRequested), new CacheListener(callback), false ); }