using System;
using System.Collections.Generic;
using System.Text;

namespace Uniframework.Services
{
    /// <summary>
    /// »á»°×´Ì¬½Ó¿Ú
    /// </summary>
    public interface ISessionState
    {
        /// <summary>
        /// »á»°±êÊ¶
        /// </summary>
        string SessionId { get; set; }
        /// <summary>
        /// Ë÷ÒýÆ÷
        /// </summary>
        /// <param name="key">±êÊ¶</param>
        /// <returns></returns>
        object this[object key] { get; set; }
        /// <summary>
        /// ÒÆ³ýËùÓÐ»á»°×´Ì¬
        /// </summary>
        void RemoveAll();
        /// <summary>
        /// ÒÆ³ýÖ¸¶¨±êÊ¶µÄÊµÀý
        /// </summary>
        /// <param name="key">±êÊ¶</param>
        void Remove(object key);
        /// <summary>
        /// ÅÐ¶ÏÊÇ·ñ´æÔÚ¸ÃkeyÖµ
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        bool Exists(object key);
    }
}
