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
Mostrar archivo Open project: xperiandri/PortablePrism Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the associated AssemblyResolver.

Private Methods

Method 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 method

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.
return bool

Dispose() public method

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

Dispose() protected method

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

FileModuleTypeLoader() public method

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