void context_OnStateChanged(Context c) { System.Console.WriteLine("--> " + c.State); }
void context_OnChanged(Context c, UnitOfWork uow) { System.Console.WriteLine(Serialization.Serialize(uow)); }
public FSMController(FSM fsm, Context context, GetAutoRuleByNameFunc getAutoRuleByName) { this.fsm = fsm; this.context = context; this.getAutoRuleByName = getAutoRuleByName; }
public Server(Context context, string namespaceName) { this.context = context; rulesList = System.Reflection.Assembly.GetExecutingAssembly().GetTypes().Where(t => t.Namespace == namespaceName && t.IsSubclassOf(typeof(Shmipl.AutoRule))).ToList(); }
protected virtual void DoImpl(Context context) { Counter = context.Counter + 1; }
public void Do(Context context) { context.BeforesChange(this); DoImpl(context); context.Changed(this); }
public virtual UnitOfWork GetUnitOfWork(Context context) { return null; }
public abstract Enum Test(Context context);
public abstract bool Test(Context context);