﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EzFramework.Mvc.Attributes
{
    /// <summary>
    /// mvc 视图令牌
    /// </summary>
    public interface IFormToken
    {
        /// <summary>
        /// 缓存的页面令牌
        /// </summary>
        string SessionToken();

        /// <summary>
        /// 获取最新的令牌信息
        /// </summary>
        string PostedToken { get; }

        /// <summary>
        /// 判断回传回来的令牌是否匹配
        /// </summary>
        /// <value>
        ///   <c>true</c> if [tokens match]; otherwise, <c>false</c>.
        /// </value>
        bool IsMatch { get; }
    }
}
