Example #1
0
        public IDataEntity RunCommand(string commandUnique, string commandParameters, DataEntityContainer dataParameters)
        {
            var commandContext = new CommandContext(dataFramework, commandFramework, commandUnique, commandParameters, dataParameters);

            return(commandContext.RunCommand());
        }
Example #2
0
 protected internal CommandContext(DataFramework dataFramework, CommandFramework commandFramework, string commandUnique, string commandParameters, DataEntityContainer dataParameter = null)
 {
     this.dataFramework     = dataFramework;
     this.commandFramework  = commandFramework;
     this.commandParameters = commandParameters;
     if (dataParameter != null)
     {
         dataParameters.Add(dataParameter);
     }
     //Lazy<ICommand, IDictionary<string, object>> foundPlugin = commandFramework.FindPlugin(commandUnique);
     foundCommand = commandFramework.FindCommand(commandUnique);
     //foundCommand = foundPlugin.Value;
 }