If you liked the video please subscribe to our channel. Visit https://www.excitoninteractive.com/ar... to see the code for this video.
Correction:
************************
Within the message service the SendEmailExceptionAsync method passes the incorrect path for the ExceptionEmail template. You can either add the path to the Email folder to the view expander or modify the path in the method to be:
var message = _viewRenderer.Render("Features/Messaging/Email/ExceptionEmail", new ExceptionEmailModel(e, context));
Please join us on:
************************
Facebook - / xcinteractive
Twitter - / xcinteractive
Google+ - https://plus.google.com/b/10481223491...
Article Abstract
************************
In this article we will create both a template and model that we can use to generate an email from an exception. With
that in place we will then create a middleware that we can use to send an email automatically if our application
encounters an unhandled exception. And of course to do this the last step will be to add our new middleware to the
pipeline within our Startup class.
Credits
************************
Clap Along by Audionautix is licensed under a Creative Commons Attribution license https://creativecommons.org/licenses/...
Artist: http://audionautix.com/