< Previous Challenge - Home - Next Challenge >
After each game is played, a notification should be sent to someone about who won the game.
- You want to automate sending the winner notification after every game is played.
- You need to build this feature using Azure's serverless capabilities to make sure it's done quickly and to keep costs at a minimum.
- The application is already wired-up to raise an event when the game completes. The event contains details about the winner. Can you use this event to complete the Winner Notification feature?
To complete this challenge successfully, you should be able to verify:
- After a game is played, a person gets a notification that includes
- Team Name
- Server Name
- Winner Name
- Game Id
- The notification comes automatically and relatively quickly after the game is played (within 30 seconds).
- Look in the
RockPaperScissorsBoom.Server/Controllers/RunGameController.cs
file to see how the event is being raised. - Look in the
RockPaperScissorsBoom.Server/appsettings.json
file to see what configuration is needed. - You may want to disable the Logic App that has been calling your web app automatically so you don't get a bunch of emails while you are working on this challenge.
- Event Grid Topic --> Event Grid Subscription (Webhook to Azure Logic App)
- The Logic App needs to have a step that sends an email.
- Look at the
RockPaperScissorsBoom.Server/EventGridPayload.json
file to see what data is available in the event.