C# Class ICSharpCode.SharpZipLib.Zip.FastZipEvents

FastZipEvents supports all events applicable to FastZip operations.
Show file Open project: icsharpcode/SharpZipLib Class Usage Examples

Public Properties

Property Type Description
CompletedFile CompletedFileHandler
DirectoryFailure DirectoryFailureHandler
FileFailure FileFailureHandler
ProcessFile ProcessFileHandler
Progress ProgressHandler

Public Methods

Method Description
OnCompletedFile ( string file ) : bool

Fires the CompletedFile delegate

OnDirectoryFailure ( string directory, Exception e ) : bool

Raise the directory failure event.

OnFileFailure ( string file, Exception e ) : bool

Fires the file failure handler delegate.

OnProcessDirectory ( string directory, bool hasMatchingFiles ) : bool

Fires the process directory delegate.

OnProcessFile ( string file ) : bool

Fires the ProcessFile delegate.

Method Details

OnCompletedFile() public method

Fires the CompletedFile delegate
public OnCompletedFile ( string file ) : bool
file string The file whose processing has been completed.
return bool

OnDirectoryFailure() public method

Raise the directory failure event.
public OnDirectoryFailure ( string directory, Exception e ) : bool
directory string The directory causing the failure.
e System.Exception The exception for this event.
return bool

OnFileFailure() public method

Fires the file failure handler delegate.
public OnFileFailure ( string file, Exception e ) : bool
file string The file causing the failure.
e System.Exception The exception for this failure.
return bool

OnProcessDirectory() public method

Fires the process directory delegate.
public OnProcessDirectory ( string directory, bool hasMatchingFiles ) : bool
directory string The directory being processed.
hasMatchingFiles bool Flag indicating if the directory has matching files as determined by the current filter.
return bool

OnProcessFile() public method

Fires the ProcessFile delegate.
public OnProcessFile ( string file ) : bool
file string The file being processed.
return bool

Property Details

CompletedFile public property

Delegate to invoke when processing for a file has been completed.
public CompletedFileHandler CompletedFile
return CompletedFileHandler

DirectoryFailure public property

Delegate to invoke when processing directory failures.
public DirectoryFailureHandler DirectoryFailure
return DirectoryFailureHandler

FileFailure public property

Delegate to invoke when processing file failures.
public FileFailureHandler FileFailure
return FileFailureHandler

ProcessFile public property

Delegate to invoke when processing files.
public ProcessFileHandler ProcessFile
return ProcessFileHandler

Progress public property

Delegate to invoke during processing of files.
public ProgressHandler Progress
return ProgressHandler