C# Class Microsoft.Practices.Prism.MefExtensions.Modularity.MefFileModuleTypeLoader

Inheritance: IModuleTypeLoader
Mostra file 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.

LoadModuleType ( ModuleInfo moduleInfo ) : void

Retrieves the moduleInfo.

MefFileModuleTypeLoader ( ) : System

Initializes a new instance of the MefFileModuleTypeLoader class. This instance is used to load requested module types.

Private Methods

Method Description
IsSuccessfullyDownloaded ( Uri uri ) : bool
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.
public CanLoadModuleType ( ModuleInfo moduleInfo ) : bool
moduleInfo Microsoft.Practices.Prism.Modularity.ModuleInfo Module that should have it's type loaded.
return bool

LoadModuleType() public method

Retrieves the moduleInfo.
public LoadModuleType ( ModuleInfo moduleInfo ) : void
moduleInfo Microsoft.Practices.Prism.Modularity.ModuleInfo Module that should have it's type loaded.
return void

MefFileModuleTypeLoader() public method

Initializes a new instance of the MefFileModuleTypeLoader class. This instance is used to load requested module types.
public MefFileModuleTypeLoader ( ) : System
return System