Skip to content

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

@htzhang2

Description

@htzhang2

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions