本文整理汇总了C#中ICSharpCode.SharpZipLib.Core.ScanFailureEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ScanFailureEventArgs类的具体用法?C# ScanFailureEventArgs怎么用?C# ScanFailureEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ScanFailureEventArgs类属于ICSharpCode.SharpZipLib.Core命名空间,在下文中一共展示了ScanFailureEventArgs类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnDirectoryFailure
/// <summary>
/// Raise the directory failure event.
/// </summary>
/// <param name="directory">The directory.</param>
/// <param name="e">The exception for this event.</param>
public void OnDirectoryFailure(string directory, Exception e)
{
if ( DirectoryFailure != null ) {
ScanFailureEventArgs args = new ScanFailureEventArgs(directory, e);
DirectoryFailure(this, args);
}
}
示例2: OnDirectoryFailure
/// <summary>
/// Raise the <see cref="DirectoryFailure">directory failure</see> event.
/// </summary>
/// <param name="directory">The directory causing the failure.</param>
/// <param name="e">The exception for this event.</param>
/// <returns>A boolean indicating if execution should continue or not.</returns>
public bool OnDirectoryFailure(string directory, Exception e)
{
bool result = false;
if ( DirectoryFailure != null ) {
ScanFailureEventArgs args = new ScanFailureEventArgs(directory, e);
DirectoryFailure(this, args);
result = args.ContinueRunning;
}
return result;
}
示例3: OnFileFailure
private bool OnFileFailure(string file, Exception e)
{
bool flag = this.FileFailure != null;
if (flag)
{
ScanFailureEventArgs args = new ScanFailureEventArgs(file, e);
this.FileFailure(this, args);
this.alive_ = args.ContinueRunning;
}
return flag;
}
示例4: OnDirectoryFailure
private bool OnDirectoryFailure(string directory, Exception e)
{
DirectoryFailureHandler directoryFailure = this.DirectoryFailure;
bool flag = directoryFailure != null;
if (flag)
{
ScanFailureEventArgs args = new ScanFailureEventArgs(directory, e);
directoryFailure(this, args);
this.alive_ = args.ContinueRunning;
}
return flag;
}
示例5: OnFileFailure
public bool OnFileFailure(string file, Exception e)
{
FileFailureHandler fileFailure = this.FileFailure;
bool continueRunning = fileFailure != null;
if (continueRunning)
{
ScanFailureEventArgs args = new ScanFailureEventArgs(file, e);
fileFailure(this, args);
continueRunning = args.ContinueRunning;
}
return continueRunning;
}
示例6: OnDirectoryFailure
public bool OnDirectoryFailure(string directory, Exception e)
{
bool continueRunning = false;
DirectoryFailureHandler directoryFailure = this.DirectoryFailure;
if (directoryFailure != null)
{
ScanFailureEventArgs args = new ScanFailureEventArgs(directory, e);
directoryFailure(this, args);
continueRunning = args.ContinueRunning;
}
return continueRunning;
}
示例7: OnFileFailure
/// <summary>
/// Raises the <see cref="FileFailure">file failure delegate</see>.
/// </summary>
/// <param name="file">The file causing the failure.</param>
/// <param name="e">The exception for this failure.</param>
/// <returns>A boolean indicating if execution should continue or not.</returns>
public bool OnFileFailure(string file, Exception e)
{
bool result = false;
if ( FileFailure != null ) {
ScanFailureEventArgs args = new ScanFailureEventArgs(file, e);
FileFailure(this, args);
result = args.ContinueRunning;
}
return result;
}
示例8: OnFileFailure
/// <summary>
/// Fires the <see cref="FileFailure"> file failure handler delegate</see>.
/// </summary>
/// <param name="file">The file causing the failure.</param>
/// <param name="e">The exception for this failure.</param>
/// <returns>A boolean indicating if execution should continue or not.</returns>
public bool OnFileFailure(string file, Exception e)
{
FileFailureHandler handler = FileFailure;
bool result = (handler != null);
if ( result ) {
ScanFailureEventArgs args = new ScanFailureEventArgs(file, e);
handler(this, args);
result = args.ContinueRunning;
}
return result;
}
示例9: OnDirectoryFailure
/// <summary>
/// Raise the DirectoryFailure event.
/// </summary>
/// <param name="directory">The directory name.</param>
/// <param name="e">The exception detected.</param>
bool OnDirectoryFailure(string directory, Exception e)
{
DirectoryFailureHandler handler = DirectoryFailure;
bool result = (handler != null);
if ( result ) {
ScanFailureEventArgs args = new ScanFailureEventArgs(directory, e);
handler(this, args);
alive_ = args.ContinueRunning;
}
return result;
}
示例10: OnFileFailure
/// <summary>
/// Raise the FileFailure event.
/// </summary>
/// <param name="file">The file name.</param>
/// <param name="e">The exception detected.</param>
private bool OnFileFailure(string file, Exception e)
{
FileFailureHandler handler = FileFailure;
bool result = (handler != null);
if (result)
{
var args = new ScanFailureEventArgs(file, e);
FileFailure(this, args);
alive_ = args.ContinueRunning;
}
return result;
}
示例11: OnFileFailure
/// <summary>
/// Raise the FileFailure event.
/// </summary>
/// <param name="file">The file name.</param>
/// <param name="e">The exception detected.</param>
public void OnFileFailure(string file, Exception e)
{
if ( FileFailure == null ) {
alive_ = false;
} else {
ScanFailureEventArgs args = new ScanFailureEventArgs(file, e);
FileFailure(this, args);
alive_ = args.ContinueRunning;
}
}
示例12: OnDirectoryFailure
/// <summary>
/// Raise the DirectoryFailure event.
/// </summary>
/// <param name="directory">The directory name.</param>
/// <param name="e">The exception detected.</param>
public void OnDirectoryFailure(string directory, Exception e)
{
if ( DirectoryFailure == null ) {
alive_ = false;
} else {
ScanFailureEventArgs args = new ScanFailureEventArgs(directory, e);
DirectoryFailure(this, args);
alive_ = args.ContinueRunning;
}
}
示例13: OnDirectoryFailure
/// <summary>
/// Raise the <see cref="DirectoryFailure">directory failure</see> event.
/// </summary>
/// <param name="directory">The directory causing the failure.</param>
/// <param name="e">The exception for this event.</param>
/// <returns>A boolean indicating if execution should continue or not.</returns>
public bool OnDirectoryFailure(string directory, Exception e)
{
bool result = false;
DirectoryFailureHandler handler = DirectoryFailure;
if (handler != null) {
var args = new ScanFailureEventArgs(directory, e);
handler(this, args);
result = args.ContinueRunning;
}
return result;
}
示例14: OnFileFailure
/// <summary>
/// Raises the file failure event.
/// </summary>
/// <param name="file">The file for this event.</param>
/// <param name="e">The exception for this event.</param>
public void OnFileFailure(string file, Exception e)
{
if ( FileFailure != null ) {
ScanFailureEventArgs args = new ScanFailureEventArgs(file, e);
FileFailure(this, args);
}
}