C# Class Framework.Mvc.Resources.YamlResourceCache

Parses resources from yaml-files. Monitors resource files changes for development environment.
YamlResourceCache is thread safe.
Inheritance: IResourceCache, IDisposable
Afficher le fichier Open project: coreframework/Core-Framework

Méthodes publiques

Свойство Type Description
ScopeSeparator String

Méthodes publiques

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

Private Methods

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

Method Details

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

GetEnumerator() public méthode

Gets resources enumerator.
public GetEnumerator ( ) : String>>.IEnumerator
Résultat String>>.IEnumerator

GetResource() public méthode

Gets the resource by key.
public GetResource ( String key ) : String
key String The resource key.
Résultat String

Update() public méthode

Updates resources cache.
public Update ( ) : void
Résultat void

YamlResourceCache() public méthode

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.
Résultat System

Property Details

ScopeSeparator public_oe static_oe property

Scope separator.
public static String ScopeSeparator
Résultat String