public object Deserialize(string fileName) { var ret = new GameScript(); ret.Path = fileName; ret.GameId = GameId; ret.Script = File.ReadAllText(fileName); return ret; }
public void Invalidate(GameScript script) { var s = Scripts.FirstOrDefault(x => x.Path == script.Path); if (s == null) return; Db.Config.Cache.InvalidateObject(s); }