Table of Contents

Class IndexAssureProgress

Namespace
Tharga.MongoDB
Assembly
Tharga.MongoDB.dll

Progress event raised by RestoreAllIndicesAsync(Func<CollectionInfo, bool>, IProgress<IndexAssureProgress>, CancellationToken) as each collection is processed. One event per collection — used by the Blazor toolbar to show a notification per step and by the MCP tool to stream progress.

public record IndexAssureProgress : IEquatable<IndexAssureProgress>
Inheritance
IndexAssureProgress
Implements
Inherited Members

Properties

CollectionInfo

The collection being processed.

public required CollectionInfo CollectionInfo { get; init; }

Property Value

CollectionInfo

Error

The exception captured if processing failed; null when Success is true or skipped.

public Exception Error { get; init; }

Property Value

Exception

Index

Zero-based index of the current collection in the iteration.

public required int Index { get; init; }

Property Value

int

Skipped

True when the collection was skipped (e.g. NotInCode).

public required bool Skipped { get; init; }

Property Value

bool

Success

True if the call to RestoreIndexAsync succeeded.

public required bool Success { get; init; }

Property Value

bool

Total

Total number of collections that will be processed.

public required int Total { get; init; }

Property Value

int