in Hands-on lab/lab-files/src/TollBooth/TollBooth/SendToEventGrid.cs [25:40]
public async Task SendLicensePlateData(LicensePlateData data)
{
// Will send to one of two routes, depending on success.
// Event listeners will filter and act on events they need to
// process (save to database, move to manual checkup queue, etc.)
if (data.LicensePlateFound)
{
// TODO 3: Modify send method to include the proper eventType name value for saving plate data.
// COMPLETE: await Send(...);
}
else
{
// TODO 4: Modify send method to include the proper eventType name value for queuing plate for manual review.
// COMPLETE: await Send(...);
}
}