Class GenerationOptions
- Namespace
- TypedRest.CodeGeneration.CSharp
- Assembly
- TypedRest.CodeGeneration.CSharp.dll
Options controlling the generation of a TypedRest client.
public class GenerationOptions
- Inheritance
-
objectGenerationOptions
Constructors
GenerationOptions(string)
Options controlling the generation of a TypedRest client.
public GenerationOptions(string serviceName)
Parameters
serviceNamestringThe 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
GenerateDtos
Controls whether to generate DTOs.
public bool GenerateDtos { get; set; }
Property Value
GenerateInterfaces
Controls whether to generate interfaces for endpoints.
public bool GenerateInterfaces { get; set; }
Property Value
LanguageVersion
The minimum C# version the generated DTOs must compile with.
public LanguageVersion LanguageVersion { get; set; }
Property Value
Namespace
The C# namespace for the endpoints. Uses ServiceName if not set.
public string? Namespace { get; set; }
Property Value
ServiceName
The service name to use for the entry endpoint.
public string ServiceName { get; }
Property Value
Methods
NamingStrategy()
Builds a NamingStrategy applying the namespace fallbacks.
public NamingStrategy NamingStrategy()