C# Класс Snooze.BaseViewFormatter

Наследование: IResourceFormatter
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_targetMimeType string
_viewNameCache string>.ConcurrentDictionary
alsoAcceptRequestsToFormat string[]

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
BaseViewFormatter ( string targetMimeType ) : System
GetViewNames ( object resource ) : string[]

Приватные методы

Метод Описание
FindView ( System.Web.Mvc.ControllerContext context, object resource ) : System.Web.Mvc.ViewEngineResult
SetContentType ( System.Web.Mvc.ControllerContext context, string contentType ) : void

Описание методов

BaseViewFormatter() защищенный Метод

protected BaseViewFormatter ( string targetMimeType ) : System
targetMimeType string
Результат System

CanFormat() публичный Метод

public CanFormat ( System.Web.Mvc.ControllerContext context, object resource, string mimeType ) : bool
context System.Web.Mvc.ControllerContext
resource object
mimeType string
Результат bool

CompareTo() публичный абстрактный Метод

public abstract CompareTo ( object obj ) : int
obj object
Результат int

GetViewNames() защищенный абстрактный Метод

protected abstract GetViewNames ( object resource ) : string[]
resource object
Результат string[]

Output() публичный Метод

public Output ( System.Web.Mvc.ControllerContext context, object resource, string contentType ) : void
context System.Web.Mvc.ControllerContext
resource object
contentType string
Результат void

Описание свойств

_targetMimeType защищенное свойство

protected string _targetMimeType
Результат string

_viewNameCache защищенное статическое свойство

protected static ConcurrentDictionary _viewNameCache
Результат string>.ConcurrentDictionary

alsoAcceptRequestsToFormat защищенное свойство

protected string[] alsoAcceptRequestsToFormat
Результат string[]