Table of Contents

Class MessageCollector

Namespace
Hi.Common.Messages
Assembly
HiGeom.dll

A minimal IProgress<T> of IMessage that buffers every reported message into Messages. Intended as a per-call / per-request sink: a caller injects it into a have-both function (one that takes an IProgress<IMessage> messageProgress), runs the operation, then reads the collected messages back — e.g. to return them in an HTTP response so a REST / AI caller sees progress, success, and error notifications inline.

Unlike the session / strip sinks (SessionProgress, StepDiagnosticProgress) it fires no events and holds no session or pipeline state; it is cheap to create and discard for the lifetime of a single call.

public sealed class MessageCollector : IProgress<IMessage>
Inheritance
MessageCollector
Implements
Inherited Members
Extension Methods

Properties

Messages

The messages reported so far, in arrival order.

public List<IMessage> Messages { get; }

Property Value

List<IMessage>

Methods

Report(IMessage)

Reports a progress update.

public void Report(IMessage value)

Parameters

value IMessage

The value of the updated progress.