/// <summary> /// 作成 /// </summary> public IOzackBehaviour <TCommand> Create(IOzackContext context, TCommand cmd) { var behaviour = DoCreate(); behaviour.Bind(context, cmd); return(behaviour); }
//================================= // プロパティ //================================= //================================= // 関数 //================================= public OzackBehaviourBuilder(IOzackContext context, params IOzackBehaviourFactory <TCommand>[] list) { Context = context; foreach (var f in list) { FactoryContainer.Add(f); } }
public void Dispose() { Context = null; foreach (var f in FactoryContainer) { f?.Dispose(); } FactoryContainer.Clear(); }
public void Bind(IOzackContext context, TCommand cmd) { Context = context; DoBuild(cmd); }