private void ExecuteActions() { foreach (ActionCommand command in Action.Commands) { IActionCommandStrategy s = ActionCommandStrategyFactory.CreateFromType(command.Type); s.Page = this.Page; s.Command = command; // s.Transaction = tran; s.ExecuteCommand(); } }
internal void Execute() { //using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required)) //{ foreach (ActionCommand command in Action.Commands) { IActionCommandStrategy s = ActionCommandStrategyFactory.CreateFromType(command.Type); s.Page = this.Page; s.IPage = this.Page as IMobilePage; s.Command = command; // s.Page = this.Page; // s.Command = command; // s.Transaction = tran; s.ExecuteCommand(); } // scope.Complete(); //} }