Comments (5)
What exactly is wrong with it?
from aspnet-mvc.
It simply does not work, each request runs under an application container (instead of own child container).
One way to fix for me is to use PerRequestLifetimeManager in my code, but I don't want dependency on this mvc lib out of my web layer. And it seems wrong do not use build-in HierarchicalLifetimeManager.
The other way is to have child container created for each requests by default with this lib, even if PerRequestLifetimeManager is not used. Then HierarchicalLifetimeManager may be used.
Btw, it works in this way with your integration to asp.net core, where each request is scoped and child container created.
Todo:
- mark PerRequestLifetimeManager as obsolete (and remove in future versions)
- create a child container per each request (see link above how it may be done)
from aspnet-mvc.
Btw, one of the useful feature of Unity.Mvc5 that is does not require to add asp net module manually on appstart but nicely hidden in the lib: https://github.com/devtrends/Unity.Mvc5/blob/master/Unity.Mvc5/Properties/AssemblyInfo.cs
Just less code to carry with your own app.
from aspnet-mvc.
wrong button..
from aspnet-mvc.
This library has nothing to do with https://github.com/devtrends/Unity.Mvc5
You might want to contact @devtrends to address it.
I would be open to merging functionality of both into this project but I would need help because I have very limited knowledge of MVC.
from aspnet-mvc.
Related Issues (15)
- cannot convert from 'Unity.AspNet.Mvc.PerRequestLifetimeManager' to 'Unity.Injection.InjectionMember' HOT 4
- Method not found: 'Microsoft.Practices.Unity.IUnityContainer ...ContainerManager.GetConfiguredContainer() HOT 1
- Wrong release/package version
- Any document supported? HOT 6
- Introduced NoValue broke PerRequest strategy HOT 3
- Is the Class UnityPerRequestHttpModule Safe Threading ? HOT 1
- Identity AuthenticationManager with unity.mvc HOT 1
- UnityPerRequestHttpModule is disposing instances with container controlled lifetime
- Add MVC6 support HOT 11
- Run-time error if specify PerRequestLifetimeManager
- Debug mode error in debug, to find UnityContainer.cs HOT 4
- Incompatibility issues when upgrading from version 4.0.1 to version 5.0.8 on Visual Studio 2013 HOT 2
- Why not support netcoreapp2.0 and netstandard2.0 HOT 1
- Please upload PDB files for Unity.Mvc.dll on the Microsoft symbol server HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnet-mvc.