Exemple #1
0
        public void Add(Guid command, NiExecCallback exec, NiQueryCallback queryStatus)
        {
            if (command == null)
            {
                throw new ArgumentNullException("command");
            }
            if (exec == null)
            {
                throw new ArgumentNullException("exec");
            }

            _registrations[command] = new CommandRegistration(exec, queryStatus);
        }
Exemple #2
0
 public CommandRegistration(NiExecCallback exec, NiQueryCallback queryStatus)
 {
     Exec        = exec;
     QueryStatus = queryStatus;
 }