/// <inheritdoc/> public async Task ValidateDataAsync(long offset, long length, IValidateDataOperationContext operationContext, IValidateDataResultContext resultContext) { // This method has a 60 sec timeout. // To process longer requests and reset the timout timer call IContextWindows.ReportProgress() method. LogMessage($"IFile.ValidateDataAsync({offset}, {length})", this.FullPath); SimulateNetworkDelay(length, resultContext); resultContext.ReturnValidationResult(offset, length, true); }
/// <inheritdoc/> public async Task ValidateDataAsync(long offset, long length, IValidateDataOperationContext operationContext, IValidateDataResultContext resultContext) { // This method has a 60 sec timeout. // To process longer requests and reset the timout timer call IContextWindows.ReportProgress() method. Logger.LogMessage($"{nameof(IFile)}.{nameof(ValidateDataAsync)}({offset}, {length})", UserFileSystemPath); //SimulateNetworkDelay(length, resultContext); bool isValid = true; resultContext.ReturnValidationResult(offset, length, isValid); }
public async Task ValidateDataAsync(long offset, long length, IValidateDataOperationContext operationContext, IValidateDataResultContext resultContext) { throw new NotImplementedException(); }
/// <inheritdoc/> public async Task ValidateDataAsync(long offset, long length, IValidateDataOperationContext operationContext, IValidateDataResultContext resultContext) { // This method has a 60 sec timeout. // To process longer requests and reset the timout timer call IContextWindows.ReportProgress() method. Logger.LogMessage($"IFile.ValidateDataAsync({offset}, {length})", UserFileSystemPath); //SimulateNetworkDelay(length, resultContext); IVirtualFile userFile = await VirtualDrive.GetItemAsync <IVirtualFile>(UserFileSystemPath, Logger); bool isValid = await userFile.ValidateDataAsync(offset, length); resultContext.ReturnValidationResult(offset, length, isValid); }
/// <inheritdoc/> public async Task ValidateDataAsync(long offset, long length, IValidateDataOperationContext operationContext, IValidateDataResultContext resultContext) { Logger.LogMessage($"{nameof(IFile)}.{nameof(ValidateDataAsync)}({offset}, {length})", UserFileSystemPath); }