C# Class NuSurvey.Web.Controllers.Filters.LocVersionAttribute

Inheritance: System.Web.Mvc.ActionFilterAttribute
Show file Open project: ucdavis/NuSurvey

Public Methods

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

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

LocVersionAttribute() public method

public LocVersionAttribute ( ) : System
return System

OnActionExecuting() public method

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