Esempio n. 1
0
        public void SetContainer(ContainerToken <ActionTreeToken> container)
        {
            if (_container != null)
            {
                // TODO: create cutsom error
                throw new ArgumentException("Cannot set container multiple times");
            }

            _container = container;
        }
Esempio n. 2
0
 public InstanceOutput(ContainerToken <ActionTreeToken> instance)
 {
     _instance = instance;
 }
Esempio n. 3
0
//        public override void Instantiate(params dynamic[] input)
//        {
//            OneArgumentCheck(typeof(ContainerToken<ActionTreeToken>), input);
//
//            Value = new InstanceOutput(input[0]);
//        }

        public void Setup(ContainerToken <ActionTreeToken> container)
        {
            Value = new InstanceOutput(container);
        }
Esempio n. 4
0
 protected TypeToken(ContainerToken <ActionTreeToken> type)
 {
     _type = type;
 }