Table of Contents

Class GenerationMessage

Namespace
TypedRest.CodeGeneration.Generation
Assembly
TypedRest.CodeGeneration.dll

A message reported by an IClientGenerator while generating a client.

public sealed class GenerationMessage
Inheritance
object
GenerationMessage

Constructors

GenerationMessage(GenerationSeverity, string, string, string?)

Creates a new generation message.

public GenerationMessage(GenerationSeverity severity, string code, string text, string? endpointKey = null)

Parameters

severity GenerationSeverity

How important the message is.

code string

A stable identifier for the kind of message, e.g. TRCG101.

text string

A human-readable description.

endpointKey string

The key of the endpoint the message is about, if any.

Properties

Code

A stable identifier for the kind of message, e.g. TRCG101.

public string Code { get; }

Property Value

string

EndpointKey

The key of the endpoint the message is about, if any.

public string? EndpointKey { get; }

Property Value

string

Severity

How important the message is.

public GenerationSeverity Severity { get; }

Property Value

GenerationSeverity

Text

A human-readable description.

public string Text { get; }

Property Value

string

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.