ProfessionalCSharp / MoreSamples

Additional code samples the book series Professional C#, Wrox Press
https://csharp.christiannagel.com
273 stars 96 forks source link

Microsoft.Extensions.DependencyInjection with WebForms #14

Closed christiannagel closed 2 years ago

christiannagel commented 6 years ago

The DI container adapter for WebForms and Microsoft.Extensions.DependencyInjection can't instantiate APPX created types; the Unity container can. Fix needed before creating a pull request to master.

https://github.com/ProfessionalCSharp/MoreSamples/tree/webforms/DotnetFramework/ASPNET/WebFormsWithDI

christiannagel commented 6 years ago

Blog article on WebForms DI container with Unity: https://blogs.msdn.microsoft.com/webdev/2018/06/05/use-dependency-injection-in-webforms-application/