123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace CommonLang.Net
- {
- public interface AbstractSession
- {
- /// <summary>
- /// 获取属性
- /// </summary>
- /// <param name="key"></param>
- /// <returns></returns>
- object GetAttribute(string key);
- /// <summary>
- /// 设置属性
- /// </summary>
- /// <param name="key"></param>
- /// <param name="value"></param>
- /// <returns></returns>
- void SetAttribute(string key, object value);
- /// <summary>
- /// 移除属性
- /// </summary>
- /// <param name="key"></param>
- /// <returns></returns>
- void RemoveAttribute(string key);
- /// <summary>
- /// 是否包含属性
- /// </summary>
- /// <param name="key"></param>
- /// <returns></returns>
- bool ContainsAttribute(string key);
- /// <summary>
- /// 遍历属性列表
- /// </summary>
- /// <returns></returns>
- ICollection<string> GetAttributeKeys();
- }
- }
|