You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
/// Initialise a new instance of <see cref="TestStatus"/>
/// </summary>
/// <param name="file">The <see cref="ZipFile"/> this status applies to.</param>
publicTestStatus(ZipFilefile)
{
file_=file;
}
#endregion
#region Properties
/// <summary>
/// Get the current <see cref="TestOperation"/> in progress.
/// </summary>
publicTestOperationOperation
{
get{returnoperation_;}
}
/// <summary>
/// Get the <see cref="ZipFile"/> this status is applicable to.
/// </summary>
publicZipFileFile
{
get{returnfile_;}
}
/// <summary>
/// Get the current/last entry tested.
/// </summary>
publicZipEntryEntry
{
get{returnentry_;}
}
/// <summary>
/// Get the number of errors detected so far.
/// </summary>
publicintErrorCount
{
get{returnerrorCount_;}
}
/// <summary>
/// Get the number of bytes tested so far for the current entry.
/// </summary>
publiclongBytesTested
{
get{returnbytesTested_;}
}
/// <summary>
/// Get a value indicating wether the last entry test was valid.
/// </summary>
publicboolEntryValid
{
get{returnentryValid_;}
}
#endregion
#region Internal API
internalvoidAddError()
{
errorCount_++;
entryValid_=false;
}
internalvoidSetOperation(TestOperationoperation)
{
operation_=operation;
}
internalvoidSetEntry(ZipEntryentry)
{
entry_=entry;
entryValid_=true;
bytesTested_=0;
}
internalvoidSetBytesTested(longvalue)
{
bytesTested_=value;
}
#endregion
#region Instance Fields
ZipFilefile_;
ZipEntryentry_;
boolentryValid_;
interrorCount_;
longbytesTested_;
TestOperationoperation_;
#endregion
}
/// <summary>
/// Delegate invoked during <see cref="ZipFile.TestArchive(bool, TestStrategy, ZipTestResultHandler)">testing</see> if supplied indicating current progress and status.
/// </summary>
/// <remarks>If the message is non-null an error has occured. If the message is null
/// the operation as found in <see cref="TestStatus">status</see> has started.</remarks>