Property | Type | Description | |
---|---|---|---|
dependentFilePaths | List |
Method | Description | |
---|---|---|
LoadConfiguration ( string configKey, string configPath, IEnumerable |
Load the Configuration object from a cache.
|
|
NHibernateConfigurationFileCache ( ) : System |
Initializes new instance of the NHibernateConfigurationFileCache
|
|
NHibernateConfigurationFileCache ( string dependentFilePaths ) : System |
Initializes new instance of the NHibernateConfigurationFileCache using the given dependentFilePaths parameter.
|
|
SaveConfiguration ( string configKey, Configuration config ) : void |
Save the Configuration object to cache to a temporary file.
|
Method | Description | |
---|---|---|
CachedConfigPath ( string configKey ) : string |
Provide a unique temporary file path/name for the cache file. The hash value is intended to avoid the file from conflicting with other applications also using this cache feature. |
|
GetMaxDependencyTime ( ) : System.DateTime |
Returns the latest file write time from the list of dependent file paths.
|
|
IsCachedConfigCurrent ( string cachePath ) : bool |
Tests if an existing cached configuration file is out of date or not.
|
Method | Description | |
---|---|---|
AppendToDependentFilePaths ( IEnumerable |
Append the given list of file paths to the dependentFilePaths list.
|
|
AppendToDependentFilePaths ( string path ) : void |
Append the given file path to the dependentFilePaths list.
|
|
FindFile ( string path ) : string |
Tests if the file or assembly name exists either in the application's bin folder or elsewhere. If the path parameter does not end with ".dll" it is appended and tested if the dll file exists. |
protected CachedConfigPath ( string configKey ) : string | ||
configKey | string | |
return | string |
protected GetMaxDependencyTime ( ) : System.DateTime | ||
return | System.DateTime |
protected IsCachedConfigCurrent ( string cachePath ) : bool | ||
cachePath | string | Location of the cached |
return | bool |
public LoadConfiguration ( string configKey, string configPath, IEnumerable |
||
configKey | string | Key value to provide a unique name to the cached |
configPath | string | NHibernate configuration xml file. This is used to determine if the
/// cached |
mappingAssemblies | IEnumerable |
Assemblies containing NHibernate mappings. |
return | Configuration |
public NHibernateConfigurationFileCache ( ) : System | ||
return | System |
public NHibernateConfigurationFileCache ( string dependentFilePaths ) : System | ||
dependentFilePaths | string | LIst of files that the cached configuration /// is dependent upon. |
return | System |
public SaveConfiguration ( string configKey, Configuration config ) : void | ||
configKey | string | Key value to provide a unique name to the cached |
config | Configuration | Configuration object to save. |
return | void |