when i update to Autofac.Extras.DynamicProxy2 v3.0.6, i got a exception.

144 views
Skip to first unread message

supers...@gmail.com

unread,
Jul 1, 2015, 9:09:08 AM7/1/15
to aut...@googlegroups.com
i have use EnableInterfaceInterceptors() to implement AOP.

it works in Autofac.Extras.DynamicProxy2 v3.0.5.
i updated to v3.0.6 and got a exception, as...


"The component Activator = XXX (ReflectionActivator), Services = [XXX], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope cannot use interface interception as it provides services that are not publicly visible interfaces. Check your registration of the component to ensure you're not enabling interception and registering it as an internal/private interface type."


something what i need to adjust ???

Alex Meyer-Gleaves

unread,
Jul 1, 2015, 9:22:33 AM7/1/15
to aut...@googlegroups.com

I enabled interception of internal interfaces if the InternalsVisibleTo attribute was present. Must be related to that change. Would be great if you could put together a small repro.


--
You received this message because you are subscribed to the Google Groups "Autofac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autofac+u...@googlegroups.com.
To post to this group, send email to aut...@googlegroups.com.
Visit this group at http://groups.google.com/group/autofac.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages