Esempio n. 1
0
 public AppContext(HttpContext httpContext, string currentUserId, string currentUserName) : this(currentUserId, currentUserName)
 {
     this._SessionWrapper = new SessionWrapper(httpContext.Session);
     this._Items = httpContext.Items;
     this._Application = httpContext.Application;
     httpContext.Items[HTTP_CONTEXT_KEY] = this;
 }
Esempio n. 2
0
 public AppContext(HttpContext httpContext, string currentUserId, string currentUserName) : this(currentUserId, currentUserName)
 {
     this._SessionWrapper = new SessionWrapper(httpContext.Session);
     this._Items          = httpContext.Items;
     this._Application    = httpContext.Application;
     httpContext.Items[HTTP_CONTEXT_KEY] = this;
 }
Esempio n. 3
0
 public AppContext(string currentUserId, string currentUserName)
 {
     _Context = this;
     this._SessionWrapper = new SessionWrapper();
     this._Items = new Dictionary<string, object>();
     this._Application = new NameObjectCollection();
     CurrentUserId = currentUserId;
     CurrentUserName = currentUserName;
 }
Esempio n. 4
0
 public AppContext(string currentUserId, string currentUserName)
 {
     _Context             = this;
     this._SessionWrapper = new SessionWrapper();
     this._Items          = new Dictionary <string, object>();
     this._Application    = new NameObjectCollection();
     CurrentUserId        = currentUserId;
     CurrentUserName      = currentUserName;
 }