C# Class NSwag.CodeGeneration.CodeGenerators.CSharp.SwaggerToCSharpClientGenerator

Generates the CSharp service client code.
Inheritance: NSwag.CodeGeneration.CodeGenerators.CSharp.SwaggerToCSharpGenerator
Afficher le fichier Open project: NSwag/NSwag Class Usage Examples

Private Properties

Свойство Type Description
GenerateClientClass string
GetParameterVariableName string

Méthodes publiques

Méthode Description
GenerateFile ( ) : string

Generates the file.

GenerateFile ( ClientGeneratorOutputType outputType ) : string

Generates the the whole file containing all needed types.

SwaggerToCSharpClientGenerator ( SwaggerDocument document, SwaggerToCSharpClientGeneratorSettings settings ) : System

Initializes a new instance of the SwaggerToCSharpClientGenerator class.

SwaggerToCSharpClientGenerator ( SwaggerDocument document, SwaggerToCSharpClientGeneratorSettings settings, SwaggerToCSharpTypeResolver resolver ) : System

Initializes a new instance of the SwaggerToCSharpClientGenerator class.

Méthodes protégées

Méthode Description
ResolveParameterType ( SwaggerParameter parameter ) : string

Resolves the type of the parameter.

Private Methods

Méthode Description
GenerateClientClass ( string controllerName, string controllerClassName, IList operations, ClientGeneratorOutputType outputType ) : string
GetParameterVariableName ( SwaggerParameter parameter ) : string

Method Details

GenerateFile() public méthode

Generates the file.
public GenerateFile ( ) : string
Résultat string

GenerateFile() public méthode

Generates the the whole file containing all needed types.
public GenerateFile ( ClientGeneratorOutputType outputType ) : string
outputType ClientGeneratorOutputType The output type.
Résultat string

ResolveParameterType() protected méthode

Resolves the type of the parameter.
protected ResolveParameterType ( SwaggerParameter parameter ) : string
parameter SwaggerParameter The parameter.
Résultat string

SwaggerToCSharpClientGenerator() public méthode

Initializes a new instance of the SwaggerToCSharpClientGenerator class.
is .
public SwaggerToCSharpClientGenerator ( SwaggerDocument document, SwaggerToCSharpClientGeneratorSettings settings ) : System
document SwaggerDocument The Swagger document.
settings SwaggerToCSharpClientGeneratorSettings The settings.
Résultat System

SwaggerToCSharpClientGenerator() public méthode

Initializes a new instance of the SwaggerToCSharpClientGenerator class.
is .
public SwaggerToCSharpClientGenerator ( SwaggerDocument document, SwaggerToCSharpClientGeneratorSettings settings, SwaggerToCSharpTypeResolver resolver ) : System
document SwaggerDocument The Swagger document.
settings SwaggerToCSharpClientGeneratorSettings The settings.
resolver SwaggerToCSharpTypeResolver The resolver.
Résultat System