Handling Events Inside an Azure Function