Class BOBChunkedUploadResult
- Namespace
- BlazOrbit.Components.Forms
- Assembly
- BlazOrbit.dll
Terminal outcome returned by UploadAsync(IBrowserFile, CancellationToken). Exceptions
thrown by the read stream, the consumer-supplied SendChunk callback, or
cancellation are captured in Error rather than rethrown.
public sealed record BOBChunkedUploadResult
- Inheritance
-
objectBOBChunkedUploadResult
Constructors
BOBChunkedUploadResult(string, long, int, bool, Exception?)
Terminal outcome returned by UploadAsync(IBrowserFile, CancellationToken). Exceptions
thrown by the read stream, the consumer-supplied SendChunk callback, or
cancellation are captured in Error rather than rethrown.
public BOBChunkedUploadResult(string FileName, long FileSize, int TotalChunks, bool Success, Exception? Error)
Parameters
FileNamestringThe originating file's display name.
FileSizelongTotal size of the originating file in bytes.
TotalChunksintTotal chunks the uploader emitted (or would have emitted).
Successbooltrue when every chunk completed without error.
ErrorExceptionThe captured exception when Success is false; null otherwise.
Properties
Error
public Exception? Error { get; init; }
Property Value
- Exception
FileName
The originating file's display name.
public string FileName { get; init; }
Property Value
- string
FileSize
Total size of the originating file in bytes.
public long FileSize { get; init; }
Property Value
- long
Success
true when every chunk completed without error.
public bool Success { get; init; }
Property Value
- bool
TotalChunks
Total chunks the uploader emitted (or would have emitted).
public int TotalChunks { get; init; }
Property Value
- int