예제 #1
0
        private void PopResolutionContext(ResolutionContext.ResolutionContextActivation activation,
                                          ContainerService containerService, bool isEnumerable)
        {
            ResolutionContext.Pop(activation);
            if (activation.previous == null)
            {
                return;
            }
            var resultDependency = containerService.AsDependency(containerContext, "() => " + containerService.Type.FormatName(), isEnumerable);

            if (activation.activated.Container != activation.previous.Container)
            {
                resultDependency.Comment = "container boundary";
            }
            activation.previous.TopBuilder.AddDependency(resultDependency, false);
        }