コード例 #1
0
 public override void Setup()
 {
     base.Setup();
       _machineContainer = new MachineContainer();
       _machineContainer.Initialize();
       _machineContainer.AddPlugin(new DisposablePlugin());
       _machineContainer.AddPlugin(new DynamicProxyPlugin());
       _machineContainer.PrepareForServices();
       _machineContainer.Start();
 }
コード例 #2
0
        public override void Setup()
        {
            base.Setup();
              _parentContainer = new MachineContainer();
              _parentContainer.Initialize();
              _parentContainer.AddPlugin(new DisposablePlugin());
              _parentContainer.PrepareForServices();
              _parentContainer.Start();

              _childContainer = new MachineContainer();
              _childContainer.Initialize();
              _childContainer.AddPlugin(new DisposablePlugin());
              _childContainer.AddPlugin(new ParentContainer(_parentContainer));
              _childContainer.PrepareForServices();
              _childContainer.Start();
        }
コード例 #3
0
 public void Intercept_When_Not_Installed_Throws()
 {
     _machineContainer = new MachineContainer();
       _machineContainer.Initialize();
       _machineContainer.AddPlugin(new DisposablePlugin());
       _machineContainer.PrepareForServices();
       _machineContainer.Start();
       _machineContainer.Register.Type<SimpleService1>().Intercept<SimpleInterceptor>();
 }
コード例 #4
0
 public virtual void Setup()
 {
     _threads.Clear();
       _machineContainer = new MachineContainer();
       _machineContainer.Initialize();
       _machineContainer.AddListener(this);
       _machineContainer.AddPlugin(new DisposablePlugin());
       _machineContainer.PrepareForServices();
       _machineContainer.Start();
       log4net.Appender.OutputDebugStringAppender appender = new log4net.Appender.OutputDebugStringAppender();
       appender.Layout = new log4net.Layout.PatternLayout("%-5p %c{1} %m");
       log4net.Config.BasicConfigurator.Configure(appender);
 }