Skip to content

Aspect-Injector driven Exception Logging and Asynchronous Code #185

Answered by pamidur
TheMouster asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @TheMouster , the development went as far as here https://github.com/pamidur/aspect-injector/blob/master/samples/src/Universal/Aspects/BaseUniversalWrapperAspect.cs
you can either copy it.

or use an attribute from Aspects.Universal package

protected virtual T OnException<T>(AspectEventArgs eventArgs, Exception exception)

like this

[Injection(typeof(MethodWrapperAspect))]
class MyExceptionHandlingAttribute : Aspects.Universal.Attributes.BaseMethodPointsAspectAttribute
{
    protected override T OnException<T>(AspectEventArgs eventArgs, Exception exception)
    {

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TheMouster
Comment options

@emialmasia
Comment options

Answer selected by TheMouster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants