public CompilePhaseHandlerWithIncremental(CompilePhaseHandler inner) { _inner = inner ?? throw new ArgumentNullException(nameof(inner)); Context = _inner.Context; IncrementalContext = Context.IncrementalBuildContext; LastBuildVersionInfo = IncrementalContext.LastBuildVersionInfo; LastBuildMessageInfo = BuildPhaseUtility.GetPhaseMessageInfo(LastBuildVersionInfo?.BuildMessage, Phase); CurrentBuildVersionInfo = IncrementalContext.CurrentBuildVersionInfo; CurrentBuildMessageInfo = BuildPhaseUtility.GetPhaseMessageInfo(CurrentBuildVersionInfo.BuildMessage, Phase); }
public LinkPhaseHandlerWithIncremental(LinkPhaseHandler inner) { if (inner == null) { throw new ArgumentNullException(nameof(inner)); } _inner = inner; Context = _inner.Context; TemplateProcessor = _inner.TemplateProcessor; IncrementalContext = Context.IncrementalBuildContext; LastBuildVersionInfo = IncrementalContext.LastBuildVersionInfo; LastBuildMessageInfo = BuildPhaseUtility.GetPhaseMessageInfo(LastBuildVersionInfo?.BuildMessage, Phase); CurrentBuildVersionInfo = IncrementalContext.CurrentBuildVersionInfo; CurrentBuildMessageInfo = BuildPhaseUtility.GetPhaseMessageInfo(CurrentBuildVersionInfo.BuildMessage, Phase); }