You need to ensure that client applications can initiate reports without waiting for status

You develop a Windows Communication Foundation (WCF) service to generate reports.
Client applications call the service to initiate report generation but do not wait for the reports
to be generated. The service does not provide any status to the client applications. The
service class is defined as follows. (Line numbers are included for reference only.) 01

<ServiceContract()> 02 Public Class ReportGeneratorService 03 04 Private Function
GenerateReports( ByVal clientID As Integer) As Integer 05 & 06 Return 0 07 End Function
08 09 End Class You need to ensure that client applications can initiate reports without
waiting for status. Which two actions should you perform (Each correct answer presents
part of the solution. Choose two.)

You develop a Windows Communication Foundation (WCF) service to generate reports.
Client applications call the service to initiate report generation but do not wait for the reports
to be generated. The service does not provide any status to the client applications. The
service class is defined as follows. (Line numbers are included for reference only.) 01

<ServiceContract()> 02 Public Class ReportGeneratorService 03 04 Private Function
GenerateReports( ByVal clientID As Integer) As Integer 05 & 06 Return 0 07 End Function
08 09 End Class You need to ensure that client applications can initiate reports without
waiting for status. Which two actions should you perform (Each correct answer presents
part of the solution. Choose two.)

A.
Insert the following code at line 03. <OperationContract(IsOneWay:=True)>

B.
Insert the following code at line 03. <OperationContract(AsyncPattern:=False)>

C.
At line 04, change the GenerateReports method from Private to Public.

D.
Remove line 06. At line 04, change the type of GenerateReports method to Sub. Remove
the code As Integer from the method definition.



Leave a Reply 0

Your email address will not be published. Required fields are marked *