Home » Microsoft » 70-489 » What should you do?
You need to implement the remote event receiver for the Admin Custom List app
What should you do?
A. Insert the following code segment at line RR05:
ListRemoteEventReceiver(properties);
B. Insert the following code segment at line RR05:
ProcessOneWayEvent(properties);
C. Insert the following code segment at line RR11:
ProcessEvent(properties);
D. Insert the following code segment at line RR11:
ListRemoteEventReceiver(properties);
Correct Answer: D
Explanation/Reference:
Scenario:
The Admin Custom List app must use a remote event receiver to send an email message to each team member when information is updated.
[OperationContractAttribute] SPRemoteEventResult ProcessEvent(SPRemoteEventProperties properties)
ProcessEvent This is a synchronous event handler.Use it to call code when a "before" event occurs .
[OperationContractAttribute(IsOneWay = true)] void ProcessOneWayEvent(SPRemoteEventProperties properties)
ProcessOneWayEvent This is an asynchronous event handler. Use it to call code when an "after" event occurs .
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.eventreceivers.iremoteeventservice.aspx