public void PostProcess(IBuildSession buildSession) { if (buildSession.BuildResult.HasValue) { var unit = buildSession.BuildResult.Value; var type = unit.GetType(); var properties = buildSession.GetPropertiesToInject(type); foreach (var property in properties) { var value = buildSession.GetValueForProperty(property); property.SetValue(unit, value); } } }