You are an enterprise application developer. You create a component that has a method named IsPrinterLicensed. The method invokes a Web service named printLicensing. The Web service provides a method named checkLicense. You want to recieve the feedback from the Web service when the call to the Web service is completed. You write the following code segment. void pl_Completed(Object sender, printLicense.checkLicenseCompletedEventArgs args){ bool Result
= args.Result; // process result} You need to invoke the Web service asynchronously. You also need to ensure that the component is notified when the call to the Web service is completed.
Which code fragment should you use?
A.
pl = new printLicense.printLicensing();pl.checkLicenseCompleted += pl_Completed;pl.checkLicense(companyName, printerIP);
B.
pl = new printLicense.printLicensing();pl.checkLicenseCompleted += pl_Completed;pl.checkLicenseAsync(companyName, printerIP);
C.
pl = new printLicense.printLicensing();pl.checkLicenseAsync(companyName, pl = new printLicense.printLicensing();pl.AllowAutoRedirect =