Closed rhap06 closed 5 years ago
Weird indeed... I'll take a look at it.
Hi, did you have a time to take a look by any chances?
Sorry, no.
Confirmed, there are two bugs:
This should be fixed in 2.8.7. Let me know.
Thanks a lot! I confirm everything is now working correctly!
Hi,
I've got a really weird bug with MrAdvice. I made a BaseAdvice Abstract class and I have an assembly advice inheriting from it. I've got no problems setting the
IncludePointcutAttribute
andExcludePointcutAttribute
on my assembly advice. Everything works except when I don't include a method that returns a task. Whenever I do theTask.Start()
I get the following exception :System.InvalidOperationException: 'Start may not be called on a continuation task.'
That only happens when you exclude it on the assembly advice. If I include it, it works. If I add
[ExcludeAdvices("*")]
on my class the contains the method, it works. Also, if I add theExcludePointcutAttribute
on my BaseAdvice class, it also works. That's really strange. Here's the code I made to show the problem: TestConsole.zipThanks!