C# Class Snooze.BaseViewFormatter

Inheritance: IResourceFormatter
Afficher le fichier Open project: nhsevidence/Snooze

Protected Properties

Свойство Type Description
_targetMimeType string
_viewNameCache string>.ConcurrentDictionary
alsoAcceptRequestsToFormat string[]

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
BaseViewFormatter ( string targetMimeType ) : System
GetViewNames ( object resource ) : string[]

Private Methods

Méthode 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 méthode

protected BaseViewFormatter ( string targetMimeType ) : System
targetMimeType string
Résultat System

CanFormat() public méthode

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

CompareTo() public abstract méthode

public abstract CompareTo ( object obj ) : int
obj object
Résultat int

GetViewNames() protected abstract méthode

protected abstract GetViewNames ( object resource ) : string[]
resource object
Résultat string[]

Output() public méthode

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

Property Details

_targetMimeType protected_oe property

protected string _targetMimeType
Résultat string

_viewNameCache protected_oe static_oe property

protected static ConcurrentDictionary _viewNameCache
Résultat string>.ConcurrentDictionary

alsoAcceptRequestsToFormat protected_oe property

protected string[] alsoAcceptRequestsToFormat
Résultat string[]