Interface IEventProcessor
- Namespace
- nanoFramework.Runtime.Events
- Assembly
- nanoFramework.Runtime.Events.dll
Provides an interface to use as the basis of event processors.
public interface IEventProcessor
- Extension Methods
Methods
ProcessEvent(uint, uint, DateTime)
Processes an event IEventProcessor should return null if it cannot process an event, in that case next processor will be given an opportunity.
BaseEvent ProcessEvent(uint data1, uint data2, DateTime time)
Parameters
data1
uintHolds event-specific data.
data2
uintHolds event-specific data.
time
DateTimeContains the time stamp for the event.
Returns
- BaseEvent
The event that was processed, or null if the event can't be processed.
Remarks
In the event that the processor cannot process an event, IEventProcessor should return null. In that case next processor will be given an opportunity.