public ReportModelLoadInfo ( HostService hostService, IEnumerable |
||
hostService | HostService | host service |
files | IEnumerable |
models' LocalPathFromRoot |
phase | BuildPhase | the buildphase that the model was loaded at |
Результат | void |
public void ReportModelLoadInfo(HostService hostService, IEnumerable<string> files, BuildPhase? phase)
{
foreach (var f in files)
{
ReportModelLoadInfo(hostService, f, phase);
}
}
IncrementalBuildContext::ReportModelLoadInfo ( HostService hostService, string file, BuildPhase phase ) : void |
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) select LoadIntermediateModel(incrementalContext, f) into m where m != null select m).ToList(); if (toLoadList.Count > 0) { Reload(Models.Concat(toLoadList)); incrementalContext.ReportModelLoadInfo(this, toLoadList.Select(t => t.FileAndType.File), phase); } }