public object Provide(object key, DataProviderDelegate provider) { return Provide(key, provider, DefautlSlideTimeout, DefautlAbsoluteTimeout); }
public object Provide(object key, DataProviderDelegate provider, TimeSpan SlideTimeout, TimeSpan AbsoluteTimeout) { CacheableObject co = null; lock (heap.SyncRoot) co = (CacheableObject)heap[key]; if (co == null) { co = new CacheableObject(); co.AbsoluteTimeout = AbsoluteTimeout; co.SlideTimeout = SlideTimeout; co.key = key; co.provider = provider; lock (heap.SyncRoot) heap[key] = co; } return co.Data; }
public abstract void SetProvider(DataProviderDelegate del);
public override void SetProvider(DataProviderDelegate del) { mGet = del; }
public override void SetProvider(Equation <T> eq) { mGet = eq.GetValue; }
public ContinuousDataProvider(DataProviderDelegate del) { DataMethods.EnsureIsNumeric(typeof(T)); SetProvider(del); }