using Microsoft.AspNetCore.Builder;

namespace Performance.Api
{
    public static class RequestCultureMiddlewareExtensions
    {
        /// <summary>
        /// 过期限制
        /// </summary>
        /// <param name="builder"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseExpirationLimit(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<ExpirationLimitMiddleware>();
        }
    }
}
