Class NamingStrategy
- Namespace
- TypedRest.CodeGeneration.CSharp
- Assembly
- TypedRest.CodeGeneration.CSharp.dll
public class NamingStrategy : INamingStrategy
- Inheritance
-
object
NamingStrategy
- Implements
-
Constructors
NamingStrategy(string, string, string)
public NamingStrategy(string serviceName, string endpointNamespace, string dtoNamespace)
Parameters
serviceName string
endpointNamespace string
dtoNamespace string
Fields
DtoNamespace
protected readonly string DtoNamespace
Field Value
- string
EndpointNamespace
protected readonly string EndpointNamespace
Field Value
- string
ServiceName
protected readonly string ServiceName
Field Value
- string
Methods
DtoType(string)
public virtual CSharpIdentifier DtoType(string key)
Parameters
key string
Returns
- CSharpIdentifier
EndpointType(string, IEndpoint, string?)
public virtual CSharpIdentifier EndpointType(string key, IEndpoint endpoint, string? prefix = null)
Parameters
key string
endpoint IEndpoint
prefix string
Returns
- CSharpIdentifier
Normalize(string)
protected virtual string Normalize(string key)
Parameters
key string
Returns
- string
Property(string)
public virtual string Property(string key)
Parameters
key string
Returns
- string
TypeFor(OpenApiSchema?, bool)
public virtual CSharpIdentifier TypeFor(OpenApiSchema? schema, bool nullableReferenceTypes = true)
Parameters
schema OpenApiSchema
nullableReferenceTypes bool
Returns
- CSharpIdentifier