/// <summary>
 /// A key has been set, or removed. We need to store that so we know what we don't need to
 ///     dirty-check at the end of the current request.
 /// </summary>
 /// <param name="key">The Session key name that has been changed</param>
 /// <param name="itemAct">The type of change applied to the key, either DeleteValue or
 ///     SetValue</param>
 protected void AddOrSetItemAction(string key, ActionAndValue itemAct)
 {
     this.ChangedKeysDict.AddOrUpdate(
         key,
         itemAct,
         (k, orig) => {
         // override old value
         return(itemAct);
     });
 }
 /// <summary>
 /// A key has been set, or removed. We need to store that so we know what we don't need to 
 ///     dirty-check at the end of the current request.
 /// </summary>
 /// <param name="key">The Session key name that has been changed</param>
 /// <param name="itemAct">The type of change applied to the key, either DeleteValue or 
 ///     SetValue</param>
 protected void AddOrSetItemAction(string key, ActionAndValue itemAct)
 {
     this.ChangedKeysDict.AddOrUpdate(
         key,
         itemAct,
         (k, orig) => {
             // override old value
             return itemAct;
         });
 }
Beispiel #3
0
 /// <summary>
 /// A key has been set, or removed. We need to store that so we know what we don't need to
 ///     dirty-check at the end of the current request.
 /// </summary>
 /// <param name="key">The Session key name that has been changed</param>
 /// <param name="itemAct">The type of change applied to the key, either DeleteValue or
 ///     SetValue</param>
 protected void AddOrSetItemAction(string key, ActionAndValue itemAct)
 {
     this.ChangedKeysDict.AddOrUpdate(key, itemAct, (k, orig) => itemAct);
 }