C# Class Rebel.Cms.Web.System.PluginManager

Sets the application up for the plugin referencing
Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Méthode Description
Initialize ( ) : void

Private Methods

Méthode Description
CleanupDotDeletePluginFiles ( FileInfo f ) : bool

When given a .delete file this will attempt to delete the base file that the .delete was created from and then the .delete file itself. if both are removed then it will return true.

CleanupPlugin ( FileInfo f ) : bool

Tries to delete the file, if it doesn't go nicely, we'll force rename it to .delete, if that already exists and we cannot remove the .delete file then we rename to Guid + .delete

ConvertPluginsHash ( string val ) : long

Converts the hash value of current plugins to long from string

DetectAndCleanStalePlugins ( IEnumerable plugins, DirectoryInfo shadowCopyFolder ) : bool

This checks if any of our plugins have changed, if so it will go

GetCachePluginsHash ( ) : long

Returns the hash code of the plugins last loaded

GetCachePluginsList ( DirectoryInfo pluginFolder ) : IEnumerable

Returns a list of all previously copied plugins

GetNewDotDeleteName ( FileInfo pluginFile ) : string

Returns the .delete file name for a particular file. If just the file name + .delete already exists and is locked, then this returns a Guid + .delete format.

GetPackageFolderFromPluginDll ( FileInfo pluginDll ) : string

Returns the package folder for the plugin DLL passed in

GetPluginsHash ( IEnumerable plugins, bool generateNew = false ) : string

Returns the hash string for all found plugins/folders

InitializeFullTrust ( FileInfo plug, DirectoryInfo shadowCopyPlugFolder, bool performShadowCopy ) : FileInfo

Used to initialize plugins when running in Full Trust

InitializeMediumTrust ( FileInfo plug, DirectoryInfo shadowCopyPlugFolder, bool performShadowCopy ) : FileInfo

Used to initialize plugins when running in Medium Trust

IsFullTrust ( ) : bool
IsPackageLibFolder ( DirectoryInfo folder ) : bool

Determines if the folder is a bin plugin folder for a package or for the core package

IsPackagePluginFolder ( DirectoryInfo folder ) : bool

Determines if the folder is a bin plugin folder for a package

PerformFileDeployAndRegistration ( FileInfo plug, bool performShadowCopy ) : Assembly
WriteCachePluginsHash ( IEnumerable plugins ) : void

Persists a file containing a hash of all current plugins

WriteCachePluginsList ( IEnumerable plugins ) : void

Writes a list of all plugins files that are being copied

Method Details

Initialize() public static méthode

public static Initialize ( ) : void
Résultat void