Last active
January 16, 2020 08:41
-
-
Save ItayPodhajcer/fbb8ba7ca963d35605ae3f57ab786743 to your computer and use it in GitHub Desktop.
ethereum-event-azure-function-trigger/EthereumEventListener.ProcessEvents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void ProcessEvents(List<EventLog<List<ParameterOutput>>> eventsData, CancellationToken cancellationToken) | |
{ | |
eventsData | |
.Select(eventData => ExtractEventData(eventData.Event, eventData.Log)) | |
.ToList() | |
.ForEach(ethereumEventData => _executor.TryExecuteAsync(new TriggeredFunctionData { TriggerValue = ethereumEventData }, cancellationToken)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment