示例#1
0
        // don't want to expose public empty ctor,
        // so will hookup dependencies manually in this case
        // (Normally do not do this)
        private _()
        {
            var kernel = Bootstrapper.Kernel;

            _action     = kernel.Resolve <Module.Action>();
            _collection = kernel.Resolve <Module.Collection>();
            _function   = kernel.Resolve <Module.Function>();
            _list       = kernel.Resolve <Module.List>();
            _object     = kernel.Resolve <Module.Object>();
            _utility    = kernel.Resolve <Module.Utility>();
        }
示例#2
0
		// don't want to expose public empty ctor, 
		// so will hookup dependencies manually in this case
		// (Normally do not do this)
		private _()
		{
			var kernel = Bootstrapper.Kernel;

			_action = kernel.Resolve<Module.Action>();
			_collection = kernel.Resolve<Module.Collection>();
			_function = kernel.Resolve<Module.Function>();
			_list = kernel.Resolve<Module.List>();
			_object = kernel.Resolve<Module.Object>();
			_utility = kernel.Resolve<Module.Utility>();

		}