C# Класс 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.
Наследование: IModuleTypeLoader, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Disposes the associated AssemblyResolver.

Приватные методы

Метод Описание
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

Описание методов

CanLoadModuleType() публичный Метод

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.
Результат bool

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Calls Dispose(bool)
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Disposes the associated AssemblyResolver.
protected Dispose ( bool disposing ) : void
disposing bool When , it is being called from the Dispose method.
Результат void

FileModuleTypeLoader() публичный Метод

Initializes a new instance of the FileModuleTypeLoader class.
public FileModuleTypeLoader ( IAssemblyResolver assemblyResolver ) : System
assemblyResolver IAssemblyResolver The assembly resolver.
Результат System