Skip to main content

IProgressReporter

  • Namespace: PPDS.Migration.Progress
  • Assembly: PPDS.Migration
  • Kind: Interface

Summary

Interface for reporting migration progress.

Members

Methods

Complete

void Complete(MigrationResult result)

Reports operation completion.

  • Param result: The migration result.

Error

void Error(Exception exception, string context)

Reports an error.

  • Param exception: The exception that occurred.

  • Param context: Optional context about what was happening.

Report

void Report(ProgressEventArgs args)

Reports a progress update.

  • Param args: The progress event data.

Reset

void Reset()

Resets the progress reporter for a new operation phase. Restarts the internal stopwatch and clears any cached state. Use this between phases (e.g., between export and import in a copy operation).

Properties

OperationName

string OperationName { get; set; }

Gets or sets the operation name for completion messages (e.g., "Export", "Import", "Copy").

Silent

IProgressReporter Silent { get; }

A no-op reporter that silently discards all progress reports. Use as a null object: reporter ?? IProgressReporter.Silent.