Exemplo n.º 1
0
        static void InitializeDefault()
        {
#if (NETMF)
            var typeDiscoverer = new TypeDiscoverer();
            var typeSystem     = new TypeSystem();
#else
            var assemblyLocator = new AssemblyLocator();
            var typeDiscoverer  = new TypeDiscoverer(assemblyLocator);
            var typeSystem      = new TypeSystem(typeDiscoverer);
#endif


            _current = new Container(typeSystem);

            var bindingManager    = new BindingManager(typeSystem);
            var strategyActivator = new StrategyActivator(_current);
            var activationManager = new ActivationManager(typeDiscoverer, strategyActivator);
            var bindingDiscoverer = new BindingDiscoverer(_current, activationManager, typeSystem, typeDiscoverer);

            _current.Initialize(bindingManager, bindingDiscoverer, activationManager);
        }
Exemplo n.º 2
0
		static void InitializeDefault()
		{
			

#if(NETMF)
            var typeDiscoverer = new TypeDiscoverer();
            var typeSystem = new TypeSystem();
#else
			var assemblyLocator = new AssemblyLocator();
			var typeDiscoverer = new TypeDiscoverer(assemblyLocator);
            var typeSystem = new TypeSystem(typeDiscoverer);
#endif


            _current = new Container(typeSystem);

			var bindingManager = new BindingManager(typeSystem);
			var strategyActivator = new StrategyActivator(_current);
			var activationManager = new ActivationManager(typeDiscoverer, strategyActivator);
			var bindingDiscoverer = new BindingDiscoverer(_current, activationManager, typeSystem, typeDiscoverer);

			_current.Initialize(bindingManager, bindingDiscoverer, activationManager);
		}