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); }
public CommandRegistration(NiExecCallback exec, NiQueryCallback queryStatus) { Exec = exec; QueryStatus = queryStatus; }