public override void Change(CacheChangedArgs <CacheType> args) { dynamic key = this.GetKey(args.Cache); dynamic snapshotKey = this.GetKey(args.Snapshot); if (key != snapshotKey) { this.Remove(snapshotKey); this.Add(args.Cache); } }
public virtual void Change(T cache, T snapshot) { CacheChangedArgs <T> changedArgs = new CacheChangedArgs <T>(); changedArgs.Cache = cache; changedArgs.Snapshot = snapshot; if (this.Changed != null) { this.Changed(changedArgs); } }
public abstract void Change(CacheChangedArgs <T> args);
private void CacheManager_Changed(CacheChangedArgs <T> args) { this.Change(args); }