c# - Asp.Net 5 Mvc 6 Dependency Injection: Register for Session -
is there possibility register service scoped session?
in documentation found possibility add
transient: new instance each time service requested
scoped: new instance each http request
singleton: 1 instance long server , running
instance: singleton instance create
but did not find register service scoped session.
is there workaround this? or not possible?
it possible, of course. far know need coding write custom solution. start try write , integrate custom 'life time manager' (in unity nomenclature), or create custom factory subject service , register singleton.
Comments
Post a Comment