DbContextScope icon indicating copy to clipboard operation
DbContextScope copied to clipboard

Conflict with Ninject interception?

Open amelumad opened this issue 8 years ago • 0 comments

Hello,

I have been using DbContextScope for a while in my project but started to have an issue recently. I have added Ninject interceptor in order to do dome basic logging in my Service layer classes. Here is an example of module configuration:

Bind<IClientFileService>().To<ClientFileService>().InRequestScope().Intercept().With<LogErrorInterceptor>();

Once that change got introduced I started to receive "Non-static method requires a target" exception on DbContextScope.SaveChangesAsync invocation (the stack trace is attached).

What could I do to be able to use these two functions together?

Thanks, Anton

StackTrace.txt

amelumad avatar Aug 15 '16 11:08 amelumad