f135ta / SimpleProxy

Simple Proxy implementation for Net Core using Castle Dynamic Proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: is IMethodInterceptor:BeforeInvoke async/await not working?

htzhang2 opened this issue · comments

Castle.Core(4.4.0)
Castle.Core.AsyncInterceptor (1.7.0)

public class ScheduleEventInterceptor : IMethodInterceptor
{
public async void BeforeInvoke(InvocationContext invocationContext)
{
//Expect this call complete before decorated method
await [some_async_call].ConfigureAwait(false);
}
}

Problem is some_async_call complete after decorated method.

Is this a bug?