internal Company(INN inn, Dictionary <string, CompanyParameter> paramDict, FocusKeyManager manager = null, bool scoringNeeded = true) { //TODO remove singleton manager = manager ?? Settings.DefaultManager; access = manager.Access; scorer = manager.Scorer; Inn = inn; this.paramDict = paramDict; Score = -1; if (scoringNeeded) { MakeScore(); } }
public FocusKeyManager(string focusKey) { this.focusKey = focusKey; Scorer = new Scorer(); downloader = new XmlDownload(focusKey); Access = new XmlAccess( new List <IXmlCache>() { new AvailabilityAccess(GetAvailableMethods()), new SingleXmlMemoryCache(), new XmlFileSystemCache() }, downloader); }
public void Reinstance(FocusKeyManager manager) { access = manager.Access; scorer = manager.Scorer; }