public void ExecuteValidate(AsyncMultiCommand[] commands, int maxConcurrent, string ns) { this.commands = commands; this.maxConcurrent = (maxConcurrent == 0 || maxConcurrent >= commands.Length) ? commands.Length : maxConcurrent; this.ns = ns; AsyncQueryValidate.ValidateBegin(cluster, new BeginHandler(this, commands, this.maxConcurrent), commands[0].serverNode, ns); }
public void ChildSuccess(AsyncNode node) { if (clusterKey == 0) { QueryComplete(); } else { AsyncQueryValidate.Validate(cluster, new EndHandler(this), node, ns, clusterKey); } }
private void ExecuteValidateCommand(AsyncMultiCommand command) { AsyncQueryValidate.Validate(cluster, new NextHandler(this, command), command.serverNode, ns, clusterKey); }