C# Класс Framework.Mvc.Resources.YamlResourceCache

Parses resources from yaml-files. Monitors resource files changes for development environment.
YamlResourceCache is thread safe.
Наследование: IResourceCache, IDisposable
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ScopeSeparator String

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

Метод Описание
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetEnumerator ( ) : String>>.IEnumerator

Gets resources enumerator.

GetResource ( String key ) : String

Gets the resource by key.

Update ( ) : void

Updates resources cache.

YamlResourceCache ( Framework.Core.Configuration.Environment environment, String resourcesPath ) : System

Initializes a new instance of the YamlResourceCache class.

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

Метод Описание
AddNode ( Yaml.Grammar.DataItem node, String path ) : void
Combine ( String key, String prefix ) : String
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

IsFileAccessible ( String filename ) : bool

Check if the file is accesible.

ProcessFile ( Object state ) : void
ReadResources ( ) : void
ResourcesChangedHandler ( Object sender, FileSystemEventArgs e ) : void

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

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

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

Gets resources enumerator.
public GetEnumerator ( ) : String>>.IEnumerator
Результат String>>.IEnumerator

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

Gets the resource by key.
public GetResource ( String key ) : String
key String The resource key.
Результат String

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

Updates resources cache.
public Update ( ) : void
Результат void

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

Initializes a new instance of the YamlResourceCache class.
public YamlResourceCache ( Framework.Core.Configuration.Environment environment, String resourcesPath ) : System
environment Framework.Core.Configuration.Environment The environment.
resourcesPath String The resources path.
Результат System

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

ScopeSeparator публичное статическое свойство

Scope separator.
public static String ScopeSeparator
Результат String