The event provider Receive method is called by the event broker when an event arrives through the Gateway event API call. Since the event is already passed in, there is no need to retrieve the event any more. In the receive method of the sample event provider, it directly calls the fireEvent method.