WorkContext - класс |
Пространство имён: Orchard
public abstract class WorkContext
Тип WorkContext предоставляет следующие члены.
| Имя | Описание | |
|---|---|---|
| WorkContext | Инициализирует новый экземпляр класса WorkContext |
| Имя | Описание | |
|---|---|---|
| CurrentCalendar |
Active calendar of the work context
| |
| CurrentCulture |
Active culture of the work context
| |
| CurrentSite |
Settings of the site corresponding to the work context
| |
| CurrentTheme |
The theme used in the work context
| |
| CurrentTimeZone |
Time zone of the work context
| |
| CurrentUser |
The user, if there is any corresponding to the work context
| |
| HttpContext |
The http context corresponding to the work context
| |
| Layout |
The Layout shape corresponding to the work context
|
| Имя | Описание | |
|---|---|---|
| GetStateT | ||
| Resolve(Type) |
Resolves a registered dependency type.
| |
| ResolveT |
Resolves a registered dependency type.
| |
| SetStateT | ||
| TryResolve(Type, Object) |
Tries to resolve a registered dependency type.
| |
| TryResolveT(T) |
Tries to resolve a registered dependency type.
|
| Имя | Описание | |
|---|---|---|
| CurrentCultureInfo | (Определяется LocalizationExtensions.) | |
| GetID |
Получить идентификатор из объекта.
Вызывает ToString().ToLower()
(Определяется ObjectExtensions.) | |
| GetTextDirection | Перегружен. (Определяется LocalizationExtensions.) | |
| GetTextDirection(IContent) | Перегружен. (Определяется LocalizationExtensions.) | |
| Implementation |
Получить реальный объект из класса
(Определяется ModelExtensions.) | |
| SafeToString | (Определяется ObjectExtensions.) | |
| ToEncodedJson |
Получить представление объекта в структуре Json, зашифрованную для атрибута
(Определяется ObjectExtensions.) | |
| ToJson |
Получить представление объекта в структуре Json
(Определяется ObjectExtensions.) | |
| ToJsonSlice |
Получить представление объекта в структуре Json.
Обрезает стартовый и конечный символы { и }
(Определяется ObjectExtensions.) |