ioc container - Does Unity have Autofac's equivilent of Owned<> to force new instance to be created -
the project i'm on requires utilize unity. lifetime managers correctly set not issue setting lifetime manager. have special case need resolve service needs freshly resolve every dependency if original request. in autofac can injecting owned. unity back upwards or there way can phone call resolve , fresh set of injections?
unity doesn't have equivalent of autofac's owned<>
feature. problem, think factories solve it. can write own mill or utilize unity automatic factories feature. more info on msdn.
unity-container ioc-container autofac
No comments:
Post a Comment