C# Class SampleApplication.Controllers.FilterInjectionExample.CacheAttribute

Attribute to specify that the result shall be cached.
Inheritance: System.Attribute
显示文件 Open project: ninject/Ninject.Web.WebApi

Public Methods

Method Description
CacheAttribute ( int days, int hours, int minutes, int seconds ) : System

Initializes a new instance of the CacheAttribute class.

Method Details

CacheAttribute() public method

Initializes a new instance of the CacheAttribute class.
public CacheAttribute ( int days, int hours, int minutes, int seconds ) : System
days int The days of the cache expiration time.
hours int The hours of the cache expiration time.
minutes int The minutes of the cache expiration time.
seconds int The seconds of the cache expiration time.
return System