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

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -