asp.net - How to properly configure Spring.NET in a web context -


I have a problem keeping the values ​​from appearing in the scope of all users. I'm not sure what I'm doing wrong, but I'm finally on intelligence. I'm thinking that I have a container object wrong or I'm crossing values ​​with WebContacts. First of all, it is what I am doing in code. It works, but it is showing details for the first user who logs in the site (Note: My pagestore is only a type of type IDictionary which stores values ​​for sharing all user controls on the page ):

 using  (basepage page = (basepage) (spring.web.ui.page) .content.Handler) {if ((Page. Page Story ("Login ID ")! = Null)) {this.Model.LoginId = Convert.ToString (page.PageStore (" L OginID ")); }}   

Second, I have tried various scopes for my objects but I am coming out here. Here's how my object is currently configured in the container: / P>

Snippet of my business category configuration

  & lt ;! - Transaction Management Strategy - Local Database Transactions - & gt; & Lt; Object ID = "Transaction Manager" type = "Spring.Data.Cor.EdpleplayTranspress Management Manager, Spring.Data" Scope = "Request" & gt; & Lt; Property Name = "DbProvider" ref = "MyProvider" /> & Lt; / Object & gt; & Lt; Tx: feature-driven transaction-manager = "transaction manager" /> & Lt ;! - Data access object - & gt; & Lt; Object ID = "DataAccess" type = "MyApp.Business.DataAccess.DataAccess, MyApp.Business.DataAccess" abstract = "true" scope = "request" & gt; & Lt; Property Name = "AdoTemplate" Ref = "Mythemplate" /> & Lt; / Object & gt; & Lt; Object ID = "ManagerDO" type = "MyApp.Business.DataAccess.ManagerDAO, MyApp.Business.DataAccess" parent = "data entry" scope = "request" & gt; & Lt; Property name = "table name" value = "vw_managers" /> & Lt; Property Name = "Isialeged Delegation" value = "False" /> & Lt; Property Name = "ISLDUIICIR Retrieval" Value = "False" /> & Lt; / Object & gt; & Lt ;! - Services - & gt; & Lt; Object ID = "search service" type = "MyApp.Business.Services.SearchService, MyApp.Business.Services" scope = "request" & gt; & Lt; Property Name = "AdminDio" Riff = "Userdao" /> & Lt; / Object & gt;   

Snippet of my presentation layer:

  & lt; Object id = "BasePageModel" type = "MyApp.Presentation.Models .basepage model, Myoption Presentation" table = "true" radius = "session" /> & Lt; Object ID = "Manager model" type = "MyApp.Presentation.Models.ManagerModel, MyApp.Presentation" parent = "BasePageModel" scope = "session" /> & Lt ;! - Presenter - & gt; & Lt; Object name = "manager presenter" type = "muep. Presentation Presentations. Management Presentation, Myoption Presentation" Singleton = "False" Area = "Session" & gt; & Lt; Property Name = "SearchSVC" Riff = "Search Services" /> & Lt; / Object & gt;   

My UI Layer Object's Snippet:

   & Lt; Object id = "standard page" original = "base page" table = "true" singleton = "wrong" field = "session" & gt; & Lt; Property name = "masterpagesfile" value = "~ / layout / site.masters" /> & Lt; / Object & gt; & Lt; Object type = "~ / Pages / Manager.aspx" parent = "StandardPage" singleton = "false" scope = "session" />   

I know that this cat has 100 ways to skin, but the fastest solution is to properly configure and drive. Is my configuration fluctuated or am I doing all this wrong?

EDIT: General knowledge is starting ... IDictionary thread is not secure.

My problem has been fixed to protect my dictionary items, concurrentDictionary switched to objects and my scoping For issues fixed scope, my business level objects are singleton, my model objects are in the session area, and my thoughts (user controls) and pages are now set to request scope, non-singletons.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -