Table of Contents

Class MessageFormatterProcessor

Namespace
Ploch.CommandLine.Spectre.Output
Assembly
Ploch.CommandLine.Spectre.dll

Processes and formats messages using registered formatters and writers.

public class MessageFormatterProcessor : IMessageFormatterProcessor
Inheritance
MessageFormatterProcessor
Implements
Inherited Members

Remarks

This class implements the IMessageFormatterProcessor interface to provide message formatting and writing capabilities. It uses a collection of registered formatters and writers to handle different message types.

Constructors

MessageFormatterProcessor(IEnumerable<IMessageFormatter>, IEnumerable<IMessageWriter>)

Processes and formats messages using registered formatters and writers.

Methods

GetMessageText(FormattableString?, string?, IFormatProvider?)

Formats a message as a FormattableString with optional markup.

GetMessageText<TMessage>(TMessage?, string?, IFormatProvider?)

Formats a message of type TMessage with optional markup.

WriteMessage<TMessage>(TMessage?, IFormatProvider?)

Writes a message of type TMessage using the appropriate writer.