unitycontainer / interception

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

Interceptors don't work with ASP.NET Core 2.1 #19

Closed marinatord closed 5 years ago

marinatord commented 5 years ago

I used the sample code to configure Unity with UseUnityServiceProvider() and ConfigureContainer(IUnityContainer container) in the Startup class. However, the interceptors don't trigger handlers. The same code with interceptors works fine in console applications for both .NET Core and .NET Framework.

The same issue is described here - https://stackoverflow.com/questions/50699219/how-to-use-unity-container-interception-in-asp-net-core-webapi

ENikS commented 5 years ago

Interception requires Emit library and as far as I understand is not fully supported in Core apps. Feel free to reopen if this changes.