public bool Read(string location, Func <string, ProviderSettings> getTypesProviderByLocation) { _project = null; _provider = getTypesProviderByLocation(location); if (_provider == null) { return(false); } _with = (IProvideVersionedTypes)_provider.TypesProvider; if (_with == null) { return(false); } _project = _with.Reader().Read(_provider.ProjectFile); return(_project != null); }
public ProviderSettings(string projectFile, IProvideVersionedTypes provider) { ProjectFile = projectFile; TypesProvider = provider; }
public bool Read(string location, Func<string, ProviderSettings> getTypesProviderByLocation) { _project = null; _provider = getTypesProviderByLocation(location); if (_provider == null) return false; _with = (IProvideVersionedTypes) _provider.TypesProvider; if (_with == null) return false; _project = _with.Reader().Read(_provider.ProjectFile); return _project != null; }