C# Class Gramps.Controllers.Filters.VersionAttribute

Inheritance: System.Web.Mvc.ActionFilterAttribute
Mostra file Open project: ucdavis/Gramps

Public Methods

Method Description
OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
VersionAttribute ( ) : System

Private Methods

Method Description
LoadAssemblyVersion ( System.Web.Mvc.ActionExecutingContext filterContext ) : void

Grabs the date time stamp and places the version in Cache if it does not exist and places the version in ViewData

RetrieveLinkerTimestamp ( string filePath ) : System.DateTime

Grabs the build linker time stamp

http://stackoverflow.com/questions/2050396/getting-the-date-of-a-net-assembly and http://www.codinghorror.com/blog/2005/04/determining-build-date-the-hard-way.html

Method Details

OnActionExecuting() public method

public OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutingContext
return void

VersionAttribute() public method

public VersionAttribute ( ) : System
return System