Skip to content

Instantly share code, notes, and snippets.

@ItayPodhajcer
Last active January 16, 2020 08:41
Show Gist options
  • Save ItayPodhajcer/fbb8ba7ca963d35605ae3f57ab786743 to your computer and use it in GitHub Desktop.
Save ItayPodhajcer/fbb8ba7ca963d35605ae3f57ab786743 to your computer and use it in GitHub Desktop.
ethereum-event-azure-function-trigger/EthereumEventListener.ProcessEvents
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