private void ReloadUnloadedModelsPerCondition(string intermediateFolder, ModelManifest lmm, LoadPhase phase, Func <FileAndType, bool> condition) { if (intermediateFolder == null) { return; } var toLoadList = (from f in _modelLoadInfo.Keys where condition(f) select LoadIntermediateModel(intermediateFolder, lmm, f.File) into m where m != null select m).ToList(); if (toLoadList.Count > 0) { Reload(Models.Concat(toLoadList)); ReportModelLoadInfo(toLoadList.Select(t => t.FileAndType), phase); } }
private void ReloadUnloadedModelsPerCondition(IncrementalBuildContext incrementalContext, BuildPhase phase, Func <string, bool> condition) { if (!CanIncrementalBuild) { return; } var mi = incrementalContext.GetModelLoadInfo(this); var toLoadList = (from f in mi.Keys where condition(f) from m in LoadIntermediateModel(incrementalContext, f) select m).ToList(); if (toLoadList.Count > 0) { Reload(Models.Concat(toLoadList)); incrementalContext.ReportModelLoadInfo(this, toLoadList.Select(t => t.FileAndType.File), phase); } }
private void ReloadUnloadedModelsPerCondition(LoadPhase phase, Func <FileAndType, bool> condition) { if (!CanIncrementalBuild) { return; } var toLoadList = (from f in ModelLoadInfo.Keys where condition(f) select LoadIntermediateModel(f.File) into m where m != null select m).ToList(); if (toLoadList.Count > 0) { Reload(Models.Concat(toLoadList)); ReportModelLoadInfo(toLoadList.Select(t => t.FileAndType), phase); } }