AsperaErrorStatistics
class AsperaErrorStatistics
using Aspera.Transfer;
namespace Relativity.Transfer.Aspera
{
internal class AsperaErrorStatistics
{
public static bool IsFatal(SessionStats statistics)
{
if (AsperaErrorHelper.IsAuthenticationError(statistics.ErrorCode))
return true;
if (AsperaErrorHelper.IsLicenseError(statistics.ErrorCode))
return true;
return false;
}
public static bool IsValid(FileStats statistics)
{
FileState state = statistics.state;
if ((uint)state <= 3)
return true;
return false;
}
}
}