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

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

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

Méthode 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 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.
public CanLoadModuleType ( ModuleInfo moduleInfo ) : bool
moduleInfo Microsoft.Practices.Prism.Modularity.ModuleInfo Module that should have it's type loaded.
Résultat bool

LoadModuleType() public méthode

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

MefFileModuleTypeLoader() public méthode

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