Geeksltd / Olive

Olive framework, for more productive cross platform .NET solutions. It's available under the GPL v3 license. See License.md for more information.
https://geeksltd.github.io/Olive
Other
44 stars 44 forks source link

SendAsNotification (Error Notification Receiver) not implemented in Olive by default #268

Closed ChadOGeeks closed 5 years ago

ChadOGeeks commented 5 years ago

The 'Exception' class that was part of the previous framework used to include 'SendAsNotification' methods which were called by the BaseHttpApplication class. This used to allow the developer to configure Error.Notification.Receiver in the config file to send any runtime errors encountered to a list of recipients.

These methods are omitted from the dot net core Olive framework (-Extensions/Exception.cs)

Could this be added to Olive ?

In the meantime we can workaround this by adding some code in the SharedActionsController class and by using Microsoft.AspNetCore.Diagnostics and then adding logic to the Error() method extracting the exception that had occurred eg: Context.Current.Http().Features.Get();

hamidmayeli commented 5 years ago

Hi @ChadOGeeks, Thank you for suggesting it. It is added and will be available in the next release.