0

I'm trying to call this method from another one, but I don't how to call it, because it requires the arguments, and I don't know what to send them.

private void doVerify(object sender, DoWorkEventArgs args) {
        VerificationResult verificationResult = new VerificationResult();
        verificationResult.score = _engine.Verify((NffvUser)args.Argument, 20000, out verificationResult.engineStatus);
        args.Result = verificationResult;
}
CASMK
  • 55
  • 8
user2461687
  • 173
  • 1
  • 13
  • Possible duplicate of [Sending Arguments To Background Worker?](http://stackoverflow.com/questions/4807152/sending-arguments-to-background-worker) – dotNET Feb 10 '16 at 04:24

1 Answers1

1

The argument is what you pass into RunWorkerAsync.

See MSDN on How to: Run an Operation in the Background for more info.

From what you posted you will do something like backgroundWorker1.RunWorkerAsync(myNffvUser);.

Kory Gill
  • 6,993
  • 1
  • 25
  • 33