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
-
objectGenerationMessage
Constructors
GenerationMessage(GenerationSeverity, string, string, string?)
Creates a new generation message.
public GenerationMessage(GenerationSeverity severity, string code, string text, string? endpointKey = null)
Parameters
severityGenerationSeverityHow important the message is.
codestringA stable identifier for the kind of message, e.g.
TRCG101.textstringA human-readable description.
endpointKeystringThe 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
EndpointKey
The key of the endpoint the message is about, if any.
public string? EndpointKey { get; }
Property Value
Severity
How important the message is.
public GenerationSeverity Severity { get; }
Property Value
Text
A human-readable description.
public string Text { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.