protected override void Initialize()
 {
     Context.Registering += new EventHandler<RegisterEventArgs>(Context_Registering);
     Context.RegisteringInstance += new EventHandler<RegisterInstanceEventArgs>(Context_RegisteringInstance);
     var strategy = new ContainerPreCreationLoggerStrategy(_logger);
     Context.Strategies.Add(strategy, UnityBuildStage.PreCreation);
 }
Пример #2
0
        protected override void Initialize()
        {
            Context.Registering         += new EventHandler <RegisterEventArgs>(Context_Registering);
            Context.RegisteringInstance += new EventHandler <RegisterInstanceEventArgs>(Context_RegisteringInstance);
            var strategy = new ContainerPreCreationLoggerStrategy(_logger);

            Context.Strategies.Add(strategy, UnityBuildStage.PreCreation);
        }