private ICommand _GenerateOutputCommand(CommandOutput output) { if (output.State != null) { IDataPolicy effectiveDataPolicy = _dataPolicyProvider.GetDataPolicyForOutput(output); return(effectiveDataPolicy.GenerateCommand(output.State)); } return(null); }
private ICommand _GenerateOutputCommand(CommandOutput output) { if (output.State != null) { var lst = output.State.Value as List <IIntentState>; IDataPolicy effectiveDataPolicy = _dataPolicyProvider.GetDataPolicyForOutput(output); return(effectiveDataPolicy.GenerateCommand(output.State)); } return(null); }
private ICommand _GenerateOutputCommand(CommandOutput output) { if (output.State != null) { IDataPolicy effectiveDataPolicy = _dataPolicyProvider.GetDataPolicyForOutput(output); ICommand command = effectiveDataPolicy.GenerateCommand(output.State); if (command != null) { List <ICommand> commands = new List <ICommand>(); commands.Add(command); CommandsDataFlowData data = new CommandsDataFlowData(commands); command = effectiveDataPolicy.GenerateCommand(data); } return(command); } return(null); }