You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've recently started using MediatR in a project we are moving from a much older technology. The piece I'm working on is to code a registration page, save that to the database, and then send the user a notification email. Not really a big deal. I've got the basic Handle method setup and working.
I was in the process of coding up a shared email service as we always use the same email provider for most of our apps, something we've done multiple times before. My lead has suggested using IRequestPostProcessor for sending the email. After looking through the docs and other online resources, including here on GitHub, this seems like bit of over kill. This is all a bit new for us and I know I could easily add the email code in a new service/method or even add it directly in the Handle method.
Is there any general consensus on how to handle this or does it come down to do it however works best for you?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We've recently started using MediatR in a project we are moving from a much older technology. The piece I'm working on is to code a registration page, save that to the database, and then send the user a notification email. Not really a big deal. I've got the basic Handle method setup and working.
I was in the process of coding up a shared email service as we always use the same email provider for most of our apps, something we've done multiple times before. My lead has suggested using IRequestPostProcessor for sending the email. After looking through the docs and other online resources, including here on GitHub, this seems like bit of over kill. This is all a bit new for us and I know I could easily add the email code in a new service/method or even add it directly in the Handle method.
Is there any general consensus on how to handle this or does it come down to do it however works best for you?
Beta Was this translation helpful? Give feedback.
All reactions