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; }
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; }
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; }