// TODO: Use varying persistence storages; right now // we only ever use FileStateTable. public ProviderInfo(short id, WrenchProject proj) { this.id = id; pp = FileStateTable.Load(GetStatePath(proj), proj.Log); context = new InfoContext(proj.Graph.GetProviderDeclarationLoc(id), proj); }
public static FileStateTable Load (string path, IWarningLogger log) { FileStateTable fst; fst = (FileStateTable) SafeFileSerializer.Load (path, log); if (fst == null) fst = new FileStateTable (); return fst; }
public static FileStateTable Load(string path, IWarningLogger log) { FileStateTable fst; fst = (FileStateTable)SafeFileSerializer.Load(path, log); if (fst == null) { fst = new FileStateTable(); } return(fst); }