You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application will be used for stock maintenance in a warehouse. The application will receive daily sales report data from the client application through SOAP. You need to ensure that when the sales report arrives, the stock application must call the stock-counting application to retrieve the item count. Which code segment should you use?
A.
this.webServiceInputActivity1.InputReceived += new EventHandler(OnInputReceived);void OnInputReceived(object sender, EventArgs e){ //call to item counting application}
B.
this.webServiceInputActivity1.Executing += new
EventHandler<ActivityExecutionStatusChangedEventArgs>(OnExecuting);void OnExecuting(object sender, ActivityExecutionStatusChangedEventArgs e){ //call to item counting application}
C.
this.webServiceInputActivity1.StatusChanged += new
EventHandler<ActivityExecutionStatusChangedEventArgs>(OnStatusChanged);void OnStatusChanged(object sender, ActivityExecutionStatusChangedEventArgs e){ if (webServiceInputActivity1.ExecutionStatus == ActivityExecutionStatus.Initialized) { //call to item counting application }}
D.
this.webServiceInputActivity1.StatusChanged += new
EventHandler<ActivityExecutionStatusChangedEventArgs>(OnStatusChanged);void OnStatusChanged(object sender, ActivityExecutionStatusChangedEventArgs e){ if (webServiceInputActivity1.ExecutionStatus == ActivityExecutionStatus.Compensating) { //call to item counting application }}