using Microsoft.AspNetCore.Mvc;
namespace Timeline.Filters
{
///
/// Restrict max content length.
///
public class MaxContentLengthAttribute : TypeFilterAttribute
{
///
///
///
/// Max length.
public MaxContentLengthAttribute(long maxByteLength)
: base(typeof(MaxContentLengthFilter))
{
MaxByteLength = maxByteLength;
Arguments = new object[] { maxByteLength };
}
///
/// Max length.
///
public long MaxByteLength { get; }
}
}