c# - Use dependency injection BuildUp after Server.Transfer in ASP.NET -
i have automated setup of dependency injection asp.net web forms application. use unity , have services build on page request using [dependency]
attribute.
having solution unityhttpmodule
the example works when using server.transfer()
dependencies not build target page. lifecycle events are not executed again , seems there not more try use buildup
on base page.
is there recommended way of handling this?
i had similar problem. try create injections using page factories.
http://weblogs.asp.net/ricardoperes/asp-net-web-forms-extensibility-handler-factories
Comments
Post a Comment