Table of Contents

Class GenerationOptions

Namespace
TypedRest.CodeGeneration.CSharp
Assembly
TypedRest.CodeGeneration.CSharp.dll

Options controlling the generation of a TypedRest client.

public class GenerationOptions
Inheritance
object
GenerationOptions

Constructors

GenerationOptions(string)

Options controlling the generation of a TypedRest client.

public GenerationOptions(string serviceName)

Parameters

serviceName string

The service name to use for the entry endpoint.

Properties

DtoNamespace

The C# namespace for the DTOs. Uses Namespace if not set.

public string? DtoNamespace { get; set; }

Property Value

string

GenerateDtos

Controls whether to generate DTOs.

public bool GenerateDtos { get; set; }

Property Value

bool

GenerateInterfaces

Controls whether to generate interfaces for endpoints.

public bool GenerateInterfaces { get; set; }

Property Value

bool

LanguageVersion

The minimum C# version the generated DTOs must compile with.

public LanguageVersion LanguageVersion { get; set; }

Property Value

LanguageVersion

Namespace

The C# namespace for the endpoints. Uses ServiceName if not set.

public string? Namespace { get; set; }

Property Value

string

ServiceName

The service name to use for the entry endpoint.

public string ServiceName { get; }

Property Value

string

Methods

NamingStrategy()

Builds a NamingStrategy applying the namespace fallbacks.

public NamingStrategy NamingStrategy()

Returns

NamingStrategy