public IObjectCache FindCache() { var dictionary = findHttpDictionary(); if (!dictionary.Contains(RRITEM_NAME)) { lock (dictionary.SyncRoot) { if (!dictionary.Contains(RRITEM_NAME)) { var cache = new MainObjectCache(); dictionary.Add(RRITEM_NAME, cache); return(cache); } } } return((IObjectCache)dictionary[RRITEM_NAME]); }
public void Attach(InstanceContext owner) { Cache = new MainObjectCache(); }
public void SetUp() { cache = new MainObjectCache(); }
public void Attach(OperationContext owner) { Cache = new MainObjectCache(); }