C# 클래스 NSwag.CodeGeneration.CodeGenerators.ClientGeneratorBase

The client generator base.
파일 보기 프로젝트 열기: NSwag/NSwag

Private Properties

프로퍼티 타입 설명
GenerateClientClass string
GenerateFile string
GenerateFile string
GetClassName string
GetExceptionType string
GetOperations List
GetParameterVariableName string
GetResultDescription string
GetResultType string
GetSuccessResponse SwaggerResponse
GetType string
HasResultType bool

공개 메소드들

메소드 설명
GenerateFile ( ) : string

Generates the the whole file containing all needed types.

보호된 메소드들

메소드 설명
ClientGeneratorBase ( ITypeResolver resolver, CodeGeneratorSettingsBase codeGeneratorSettings ) : System

Initializes a new instance of the ClientGeneratorBase class.

ResolveParameterType ( SwaggerParameter parameter ) : string

Resolves the type of the parameter.

비공개 메소드들

메소드 설명
GenerateClientClass ( string controllerName, string controllerClassName, IList operations, ClientGeneratorOutputType outputType ) : string
GenerateFile ( SwaggerDocument document, ClientGeneratorOutputType type ) : string
GenerateFile ( string clientCode, IEnumerable clientClasses, ClientGeneratorOutputType outputType ) : string
GetClassName ( string controllerName ) : string
GetExceptionType ( SwaggerOperation operation ) : string
GetOperations ( SwaggerDocument document ) : List
GetParameterVariableName ( SwaggerParameter parameter ) : string
GetResultDescription ( SwaggerOperation operation ) : string
GetResultType ( SwaggerOperation operation ) : string
GetSuccessResponse ( SwaggerOperation operation ) : SwaggerResponse
GetType ( NJsonSchema.JsonSchema4 schema, bool isNullable, string typeNameHint ) : string
HasResultType ( SwaggerOperation operation ) : bool

메소드 상세

ClientGeneratorBase() 보호된 메소드

Initializes a new instance of the ClientGeneratorBase class.
protected ClientGeneratorBase ( ITypeResolver resolver, CodeGeneratorSettingsBase codeGeneratorSettings ) : System
resolver ITypeResolver The type resolver.
codeGeneratorSettings CodeGeneratorSettingsBase The code generator settings.
리턴 System

GenerateFile() 공개 추상적인 메소드

Generates the the whole file containing all needed types.
public abstract GenerateFile ( ) : string
리턴 string

ResolveParameterType() 보호된 메소드

Resolves the type of the parameter.
protected ResolveParameterType ( SwaggerParameter parameter ) : string
parameter SwaggerParameter The parameter.
리턴 string