unitycontainer / interception

Unity.Interception package
Apache License 2.0
22 stars 18 forks source link

Issue #14 - .NetStandard - Interception works 1 level, but not 2 #20

Closed hecflores closed 5 years ago

hecflores commented 5 years ago

Issue 14 In NetCore, interception will not work if more then 1 interface is setup to be intercepted.

Reason: According to documentation in Emit, only one ModuleBuilder per AssemblyBuilder can be created

Fix: Modified InterfaceInterceptorClassGenerator to follow a singleton pattern when creating a ModuleBuilder.