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
파일 보기 프로젝트 열기: xperiandri/PortablePrism 1 사용 예제들

공개 메소드들

메소드 설명
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