Example #1
0
 public Engine(IReader reader, IOutputStore output, Database <int> db)
 {
     this.reader     = reader;
     this.output     = output;
     this.db         = db;
     this.cmdFactory = new CommandFactory();
 }
 public Engine(IReader reader, IWriter writer, IOutputStore outputStore, IServiceProvider serviceProvider)
 {
     this.reader          = reader;
     this.writer          = writer;
     this.outputStore     = outputStore;
     this.serviceProvider = serviceProvider;
     this.isRunning       = true;
 }
Example #3
0
        public IExecutable GetCommand(IDatabase <Person> db, string line, IOutputStore output)
        {
            string[] cmdArgs              = line.Split();
            string   cmdName              = "_02.Extended_Database.Core.Commands." + cmdArgs[0];
            Type     cmdType              = Type.GetType(cmdName);
            string   qualifiedName        = cmdType.AssemblyQualifiedName;
            Type     cmdQualifiedNameType = Type.GetType(qualifiedName);

            return((IExecutable)Activator.CreateInstance(cmdQualifiedNameType,
                                                         BindingFlags.Instance | BindingFlags.Public, null, new object[] { db, cmdArgs, output }, null));
        }
Example #4
0
 public Add(Database <int> db, string[] input, IOutputStore output) : base(db, input, output)
 {
 }
Example #5
0
 protected Command(Database <Person> db, string[] input, IOutputStore output)
 {
     this.db     = db;
     this.input  = input;
     this.output = output;
 }
Example #6
0
 public Fetch(Database <Person> db, string[] input, IOutputStore output) : base(db, input, output)
 {
 }
 public FindByUsername(Database <Person> db, string[] input, IOutputStore output) : base(db, input, output)
 {
 }