C# Class Snooze.BaseViewFormatter

Inheritance: IResourceFormatter
显示文件 Open project: nhsevidence/Snooze

Protected Properties

Property Type Description
_targetMimeType string
_viewNameCache string>.ConcurrentDictionary
alsoAcceptRequestsToFormat string[]

Public Methods

Method Description
CanFormat ( System.Web.Mvc.ControllerContext context, object resource, string mimeType ) : bool
CompareTo ( object obj ) : int
Output ( System.Web.Mvc.ControllerContext context, object resource, string contentType ) : void

Protected Methods

Method Description
BaseViewFormatter ( string targetMimeType ) : System
GetViewNames ( object resource ) : string[]

Private Methods

Method Description
FindView ( System.Web.Mvc.ControllerContext context, object resource ) : System.Web.Mvc.ViewEngineResult
SetContentType ( System.Web.Mvc.ControllerContext context, string contentType ) : void

Method Details

BaseViewFormatter() protected method

protected BaseViewFormatter ( string targetMimeType ) : System
targetMimeType string
return System

CanFormat() public method

public CanFormat ( System.Web.Mvc.ControllerContext context, object resource, string mimeType ) : bool
context System.Web.Mvc.ControllerContext
resource object
mimeType string
return bool

CompareTo() public abstract method

public abstract CompareTo ( object obj ) : int
obj object
return int

GetViewNames() protected abstract method

protected abstract GetViewNames ( object resource ) : string[]
resource object
return string[]

Output() public method

public Output ( System.Web.Mvc.ControllerContext context, object resource, string contentType ) : void
context System.Web.Mvc.ControllerContext
resource object
contentType string
return void

Property Details

_targetMimeType protected_oe property

protected string _targetMimeType
return string

_viewNameCache protected_oe static_oe property

protected static ConcurrentDictionary _viewNameCache
return string>.ConcurrentDictionary

alsoAcceptRequestsToFormat protected_oe property

protected string[] alsoAcceptRequestsToFormat
return string[]