예제 #1
0
            public void EnsureRequirements(ComponentRequirementMap map)
            {
                if (this.initRequirements == RecursiveInit.Initialized)
                {
                    return;
                }
                if (this.initRequirements == RecursiveInit.InProgress)
                {
                    Log.Write(LogType.Error,
                              "Detected a cyclic Component requirement in {0}. Requirements can not be ensured for cyclic dependencies.",
                              this.Component);
                    return;
                }

                this.initRequirements = RecursiveInit.InProgress;
                this.InitRequirements(map);
                this.initRequirements = RecursiveInit.Initialized;
            }
            public void EnsureCreationChain(ComponentRequirementMap map)
            {
                if (this.initCreationChain == RecursiveInit.Initialized)
                {
                    return;
                }
                if (this.initCreationChain == RecursiveInit.InProgress)
                {
                    Logs.Core.WriteWarning(
                        "Detected a cyclic Component requirement in {0}. Requirements can not be ensured for cyclic dependencies.",
                        LogFormat.Type(this.Component));
                    return;
                }

                this.initCreationChain = RecursiveInit.InProgress;
                this.InitCreationChain(map);
                this.initCreationChain = RecursiveInit.Initialized;
            }
예제 #3
0
            public void EnsureCreationChain(ComponentRequirementMap map)
            {
                if (this.initCreationChain == RecursiveInit.Initialized)
                {
                    return;
                }
                if (this.initCreationChain == RecursiveInit.InProgress)
                {
                    Console.WriteLine(
                        "Detected a cyclic Component requirement in {0}. Requirements can not be ensured for cyclic dependencies.",
                        this.Component);
                    return;
                }

                this.initCreationChain = RecursiveInit.InProgress;
                this.InitCreationChain(map);
                this.initCreationChain = RecursiveInit.Initialized;
            }