MethodBoundaryAspect.Fody icon indicating copy to clipboard operation
MethodBoundaryAspect.Fody copied to clipboard

A Fody weaver which allows to decorate methods and hook into method start, method end and method exceptions.

Results 37 MethodBoundaryAspect.Fody issues
Sort by recently updated
recently updated
newest added

Hi, I found some problem in VS2022 when debugging intercepted methods that contain if clauses. It seems that local variables that are defined within the if statement are somehow renamed...

While using `OnException` to catch exceptions. I sort of want to be able to inform the user of things going wrong with a dialog. How ever, if the exception that...

question

[C#11 introduce Attribute with Generics](https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-11#generic-attributes). Do you have any plan to introduce this feature? Actually this doesn't work: ``` public class MyWrapperAttribute : OnMethodBoundaryAspect { private ILogger _logger { get;...

enhancement

TestClass: ```csharp [TaskLog] public class TaskTest { public Task Test() { Console.WriteLine($"front {Thread.CurrentThread.ManagedThreadId}"); return Task.Delay(1000); //Console.WriteLine("end"); } public async Task AwaitTest() { Console.WriteLine($"front {Thread.CurrentThread.ManagedThreadId}"); await Task.Delay(10); Console.WriteLine($"end {Thread.CurrentThread.ManagedThreadId}"); //throw new...

Is it feasible to update the method signature of the `On{Event}()` methods to include a generic of the return type in the method signature? - `OnEntry(MethodExecutionArgs args)` - `OnExit(MethodExecutionArgs args)`...

It would be nice to be able to also weave the constructor. Is this a general restriction of fody?

I want to simplify the process of cancel async task with MethodBoundaryAspect. So, I write the code below: ``` public class CreateAysnContext : OnMethodBoundaryAspect { public override void OnEntry(MethodExecutionArgs args)...

I am wanting to use this addin to support automatic logging using my logging framework. So far it works great except for this edge case. Async WinForm event handlers have...

bug
async

It is possilbe to make a Retry attribute

I found that if the `OnEntry` method is asynchronous, it will run alternately with the decorated method, which is not the result I want, and I want `OnEntry` to be...

enhancement