Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
htzhang2 opened this issue Mar 15, 2022 · 0 comments
Open

Comments

@htzhang2
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant