Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this have equivalant to PerRequestLifetimeManager? #84

Open
UR-ScottShew opened this issue Sep 18, 2020 · 3 comments
Open

Does this have equivalant to PerRequestLifetimeManager? #84

UR-ScottShew opened this issue Sep 18, 2020 · 3 comments
Labels
Question ❔ Issue is a question

Comments

@UR-ScottShew
Copy link

The older Unity.Mvc library (for .NET Framework) had a PerRequestLifetimeManager that created object instances with the lifetime of one http request.

Unity.Mvc does not run in Asp.Net Core sites. Does this library have equivalent functionality? If so, would it be possible to provide an explanation or code snippet on its usage?

@ENikS
Copy link
Contributor

ENikS commented Sep 18, 2020 via email

@UR-ScottShew
Copy link
Author

It does have an HttpContext class, which I believe is equivalent to what Unity.Mvc used. Do you think you could create a PerRequestLifetimeManager?

@ENikS
Copy link
Contributor

ENikS commented Sep 18, 2020

I could try in v6, but it might be a while...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question ❔ Issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants