Table of Contents

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
object
BOBChunkedUploadResult

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

FileName string

The originating file's display name.

FileSize long

Total size of the originating file in bytes.

TotalChunks int

Total chunks the uploader emitted (or would have emitted).

Success bool

true when every chunk completed without error.

Error Exception

The captured exception when Success is false; null otherwise.

Properties

Error

The captured exception when Success is false; null otherwise.

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