C# Class Microsoft.Practices.Prism.Modularity.FileModuleTypeLoader

Loads modules from an arbitrary location on the filesystem. This typeloader is only called if ModuleInfo classes have a Ref parameter that starts with "file://". This class is only used on the Desktop version of the Composite Application Library.
Inheritance: IModuleTypeLoader, IDisposable
Afficher le fichier Open project: xperiandri/PortablePrism Class Usage Examples

Méthodes publiques

Méthode Description
CanLoadModuleType ( ModuleInfo moduleInfo ) : bool

Evaluates the ModuleInfo.Ref property to see if the current typeloader will be able to retrieve the moduleInfo. Returns true if the ModuleInfo.Ref property starts with "file://", because this indicates that the file is a local file.

Dispose ( ) : void

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

Calls Dispose(bool)

FileModuleTypeLoader ( IAssemblyResolver assemblyResolver ) : System

Initializes a new instance of the FileModuleTypeLoader class.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Disposes the associated AssemblyResolver.

Private Methods

Méthode Description
FileModuleTypeLoader ( ) : System
IsSuccessfullyDownloaded ( Uri uri ) : bool
LoadModuleType ( ModuleInfo moduleInfo ) : void
RaiseLoadModuleCompleted ( LoadModuleCompletedEventArgs e ) : void
RaiseLoadModuleCompleted ( ModuleInfo moduleInfo, Exception error ) : void
RaiseModuleDownloadProgressChanged ( ModuleDownloadProgressChangedEventArgs e ) : void
RaiseModuleDownloadProgressChanged ( ModuleInfo moduleInfo, long bytesReceived, long totalBytesToReceive ) : void
RecordDownloadSuccess ( Uri uri ) : void

Method Details

CanLoadModuleType() public méthode

Evaluates the ModuleInfo.Ref property to see if the current typeloader will be able to retrieve the moduleInfo. Returns true if the ModuleInfo.Ref property starts with "file://", because this indicates that the file is a local file.
An is thrown if is null.
public CanLoadModuleType ( ModuleInfo moduleInfo ) : bool
moduleInfo ModuleInfo Module that should have it's type loaded.
Résultat bool

Dispose() public méthode

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

Dispose() protected méthode

Disposes the associated AssemblyResolver.
protected Dispose ( bool disposing ) : void
disposing bool When , it is being called from the Dispose method.
Résultat void

FileModuleTypeLoader() public méthode

Initializes a new instance of the FileModuleTypeLoader class.
public FileModuleTypeLoader ( IAssemblyResolver assemblyResolver ) : System
assemblyResolver IAssemblyResolver The assembly resolver.
Résultat System