This solution demonstrates dependency injection in Web Forms using the SimpleInjectorPageHandlerFactory
described by Steven van Deursen on his blog: https://cuttingedge.it/blogs/steven/pivot/entry.php?id=81.
- Open up
WebFormsDi.sln
in Visual Studio. - Run in IIS Express.
- Observe that the messages are generated using the
InjectedMessageService
through dependency injection rather than theDefaultMessageService
passed in through the default constructors.