Exemple #1
0
        /// <summary>
        /// 作成
        /// </summary>
        public IOzackBehaviour <TCommand> Create(IOzackContext context, TCommand cmd)
        {
            var behaviour = DoCreate();

            behaviour.Bind(context, cmd);
            return(behaviour);
        }
Exemple #2
0
        //=================================
        // プロパティ
        //=================================

        //=================================
        // 関数
        //=================================

        public OzackBehaviourBuilder(IOzackContext context, params IOzackBehaviourFactory <TCommand>[] list)
        {
            Context = context;
            foreach (var f in list)
            {
                FactoryContainer.Add(f);
            }
        }
Exemple #3
0
 public void Dispose()
 {
     Context = null;
     foreach (var f in FactoryContainer)
     {
         f?.Dispose();
     }
     FactoryContainer.Clear();
 }
Exemple #4
0
 public void Bind(IOzackContext context, TCommand cmd)
 {
     Context = context;
     DoBuild(cmd);
 }