Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Shared Property DALList() As Dictionary(Of String, DAL)
- Get
- If Not Web.HttpContext.Current.Items.Contains("_DALList") Then
- Web.HttpContext.Current.Items.Add("_DALList", New Dictionary(Of String, DAL))
- End If
- Return Web.HttpContext.Current.Items("_DALList")
- End Get
- Set(ByVal value As Dictionary(Of String, DAL))
- If Not Web.HttpContext.Current.Items.Contains("_DALList") Then
- Web.HttpContext.Current.Items.Add("_DALList", value)
- Else
- Web.HttpContext.Current.Items("_DALList") = value
- End If
- End Set
- End Property
- Shared _CurrentScope As New Dictionary(Of String, DALScope)
- Public Shared Property CurrentScope() As DALScope
- Get
- If Not _CurrentScope.ContainsKey(Web.HttpContext.Current.Session.SessionID & "_CurrentScope") Then
- _CurrentScope.Add(Web.HttpContext.Current.Session.SessionID & "_CurrentScope", New DALScope)
- End If
- Return _CurrentScope(Web.HttpContext.Current.Session.SessionID & "_CurrentScope")
- End Get
- Set(ByVal value As DALScope)
- If Not _CurrentScope.ContainsKey(Web.HttpContext.Current.Session.SessionID & "_Currentscope") Then
- _CurrentScope.Add(Web.HttpContext.Current.Session.SessionID & "_Currentscope", value)
- Else
- _CurrentScope(Web.HttpContext.Current.Session.SessionID & "_Currentscope") = value
- End If
- End Set
- End Property
Add Comment
Please, Sign In to add comment