C# 클래스 ServiceClientGenerator.GeneratorDriver

파일 보기 프로젝트 열기: aws/aws-sdk-net 1 사용 예제들

공개 메소드들

메소드 설명
Execute ( ) : void
ExecuteCustomizationTestGenerator ( BaseGenerator generator, string fileName, string subNamespace = null ) : void

Runs the generator and saves the content in the test directory.

ExecuteExampleGenerator ( BaseGenerator generator, string fileName, string subNamespace = null ) : void
ExecuteGenerator ( BaseGenerator generator, string fileName, string subNamespace = null ) : void

Runs the generator and saves the content into _bcl35 directory under the generated files root.

ExecuteGeneratorAssemblyInfo ( ) : void
ExecuteNugetFileGenerators ( ) : void
ExecuteProjectFileGenerators ( ) : void

Generates any missing project files for a service

ExecuteTestGenerator ( BaseGenerator generator, string fileName, string subNamespace = null ) : void

Runs the generator and saves the content in the test directory.

GenerateCodeAnalysisProject ( ) : void
GenerateCoreProjects ( GenerationManifest generationManifest, GeneratorOptions options ) : void
GenerateCustomizationTests ( ) : void

Generates tests for the customizations of the service

GenerateExceptions ( Operation operation ) : void

Generates exception classes in the model namespaces for exceptions declared in the service model.

GenerateNuspec ( ) : void
GeneratePackagesConfig ( ) : void
GenerateRequest ( Operation operation ) : void

Generates the request class for the operation.

GenerateRequestMarshaller ( Operation operation ) : void

Generates the request marshaller.

GenerateResponseUnmarshaller ( Operation operation ) : void

Generates the response unmarshaller along with any dependent structure unmarshallers that are called by this response unmarshaller.

GenerateStructures ( ) : void

Generates all the POCOs that go in the Model namespace for the structures defined in the service model.

GenerateUnmarshaller ( List structures ) : void
GenerateXamarinComponents ( ) : void
GeneratorDriver ( ServiceConfiguration config, GenerationManifest generationManifest, GeneratorOptions options ) : System
GetRequestMarshaller ( BaseRequestMarshaller &marshaller, bool &normalizeMarshallers ) : void

Sets the marshaller of the generator based on the service type

RemoveOrphanedShapes ( HashSet generatedFiles, string rootFolder ) : void
UpdateAssemblyVersionInfo ( GenerationManifest manifest, GeneratorOptions options ) : void
UpdateCodeAnalysisSoltion ( GenerationManifest manifest, GeneratorOptions options ) : void
UpdateCoreCLRTestDependencies ( GenerationManifest manifest, GeneratorOptions options ) : void
UpdateNuGetPackagesInReadme ( GenerationManifest manifest, GeneratorOptions options ) : void
UpdateSolutionFiles ( GenerationManifest manifest, GeneratorOptions options ) : void
UpdateUnitTestProjectReferences ( GeneratorOptions options ) : void

Update project references in unit test projects to include any new services.

비공개 메소드들

메소드 설명
ConvertHtmlToMarkDown ( string text ) : string
DetermineStructuresToProcess ( Shape containingShape, bool includeContainingShape ) : void
GenerateResponse ( Operation operation ) : void

Generate the response class for the operation.

GetMinVersion ( System.Version version ) : System.Version
GetMinVersion ( string versionText ) : System.Version
GetResponseUnmarshaller ( ) : BaseResponseUnmarshaller

Determines the type of response unmarshaller to be used based on the service model type

GetStructureMarshaller ( ) : BaseRequestMarshaller

Determines the type of marshaller that needs to be generated based on the service model type

GetStructureUnmarshaller ( ) : BaseResponseUnmarshaller

Determines the Unmarshaller for structures based on the service model type

IsExceptionPresentInParentModel ( ServiceConfiguration config, string exceptionName ) : bool
IsShapePresentInParentModel ( ServiceConfiguration config, string shapeName ) : bool
IsShapeReferred ( string shapeName, ServiceModel serviceModel ) : bool

Checks if the shape is referred directly by another shape

WriteFile ( string baseOutputDir, string subNamespace, string filename, string content, bool trimWhitespace = true, bool replaceTabs = true ) : bool
WriteFile ( string baseOutputDir, string subNamespace, string filename, string content, bool trimWhitespace, bool replaceTabs, string &outputFilePath ) : bool

Writes the contents to disk. The content will by default be trimmed of all white space and all tabs are replaced with spaces to make the output consistent.

메소드 상세

Execute() 공개 메소드

public Execute ( ) : void
리턴 void

ExecuteCustomizationTestGenerator() 공개 메소드

Runs the generator and saves the content in the test directory.
public ExecuteCustomizationTestGenerator ( BaseGenerator generator, string fileName, string subNamespace = null ) : void
generator ServiceClientGenerator.Generators.BaseGenerator The generator to use for outputting the text of the cs file
fileName string The name of the cs file
subNamespace string Adds an additional directory for the namespace
리턴 void

ExecuteExampleGenerator() 공개 메소드

public ExecuteExampleGenerator ( BaseGenerator generator, string fileName, string subNamespace = null ) : void
generator ServiceClientGenerator.Generators.BaseGenerator
fileName string
subNamespace string
리턴 void

ExecuteGenerator() 공개 메소드

Runs the generator and saves the content into _bcl35 directory under the generated files root.
public ExecuteGenerator ( BaseGenerator generator, string fileName, string subNamespace = null ) : void
generator ServiceClientGenerator.Generators.BaseGenerator The generator to use for outputting the text of the cs file
fileName string The name of the cs file
subNamespace string Adds an additional directory for the namespace
리턴 void

ExecuteGeneratorAssemblyInfo() 공개 메소드

public ExecuteGeneratorAssemblyInfo ( ) : void
리턴 void

ExecuteNugetFileGenerators() 공개 메소드

public ExecuteNugetFileGenerators ( ) : void
리턴 void

ExecuteProjectFileGenerators() 공개 메소드

Generates any missing project files for a service
public ExecuteProjectFileGenerators ( ) : void
리턴 void

ExecuteTestGenerator() 공개 메소드

Runs the generator and saves the content in the test directory.
public ExecuteTestGenerator ( BaseGenerator generator, string fileName, string subNamespace = null ) : void
generator ServiceClientGenerator.Generators.BaseGenerator The generator to use for outputting the text of the cs file
fileName string The name of the cs file
subNamespace string Adds an additional directory for the namespace
리턴 void

GenerateCodeAnalysisProject() 공개 메소드

public GenerateCodeAnalysisProject ( ) : void
리턴 void

GenerateCoreProjects() 공개 정적인 메소드

public static GenerateCoreProjects ( GenerationManifest generationManifest, GeneratorOptions options ) : void
generationManifest GenerationManifest
options GeneratorOptions
리턴 void

GenerateCustomizationTests() 공개 메소드

Generates tests for the customizations of the service
public GenerateCustomizationTests ( ) : void
리턴 void

GenerateExceptions() 공개 메소드

Generates exception classes in the model namespaces for exceptions declared in the service model.
public GenerateExceptions ( Operation operation ) : void
operation Operation The operation to generate exceptions for
리턴 void

GenerateNuspec() 공개 메소드

public GenerateNuspec ( ) : void
리턴 void

GeneratePackagesConfig() 공개 메소드

public GeneratePackagesConfig ( ) : void
리턴 void

GenerateRequest() 공개 메소드

Generates the request class for the operation.
public GenerateRequest ( Operation operation ) : void
operation Operation The operation object which contains info about what the request needs to contain for the operation
리턴 void

GenerateRequestMarshaller() 공개 메소드

Generates the request marshaller.
public GenerateRequestMarshaller ( Operation operation ) : void
operation Operation The operation to generate request marshallers for
리턴 void

GenerateResponseUnmarshaller() 공개 메소드

Generates the response unmarshaller along with any dependent structure unmarshallers that are called by this response unmarshaller.
public GenerateResponseUnmarshaller ( Operation operation ) : void
operation Operation The operation to generate the unmarshaller for
리턴 void

GenerateStructures() 공개 메소드

Generates all the POCOs that go in the Model namespace for the structures defined in the service model.
public GenerateStructures ( ) : void
리턴 void

GenerateUnmarshaller() 공개 메소드

public GenerateUnmarshaller ( List structures ) : void
structures List
리턴 void

GenerateXamarinComponents() 공개 메소드

public GenerateXamarinComponents ( ) : void
리턴 void

GeneratorDriver() 공개 메소드

public GeneratorDriver ( ServiceConfiguration config, GenerationManifest generationManifest, GeneratorOptions options ) : System
config ServiceConfiguration
generationManifest GenerationManifest
options GeneratorOptions
리턴 System

GetRequestMarshaller() 공개 메소드

Sets the marshaller of the generator based on the service type
public GetRequestMarshaller ( BaseRequestMarshaller &marshaller, bool &normalizeMarshallers ) : void
marshaller BaseRequestMarshaller The marshaller to be set
normalizeMarshallers bool If the service type is a type of json then normalizeMarshallers is set to true, false otherwise
리턴 void

RemoveOrphanedShapes() 공개 정적인 메소드

public static RemoveOrphanedShapes ( HashSet generatedFiles, string rootFolder ) : void
generatedFiles HashSet
rootFolder string
리턴 void

UpdateAssemblyVersionInfo() 공개 정적인 메소드

public static UpdateAssemblyVersionInfo ( GenerationManifest manifest, GeneratorOptions options ) : void
manifest GenerationManifest
options GeneratorOptions
리턴 void

UpdateCodeAnalysisSoltion() 공개 정적인 메소드

public static UpdateCodeAnalysisSoltion ( GenerationManifest manifest, GeneratorOptions options ) : void
manifest GenerationManifest
options GeneratorOptions
리턴 void

UpdateCoreCLRTestDependencies() 공개 정적인 메소드

public static UpdateCoreCLRTestDependencies ( GenerationManifest manifest, GeneratorOptions options ) : void
manifest GenerationManifest
options GeneratorOptions
리턴 void

UpdateNuGetPackagesInReadme() 공개 정적인 메소드

public static UpdateNuGetPackagesInReadme ( GenerationManifest manifest, GeneratorOptions options ) : void
manifest GenerationManifest
options GeneratorOptions
리턴 void

UpdateSolutionFiles() 공개 정적인 메소드

public static UpdateSolutionFiles ( GenerationManifest manifest, GeneratorOptions options ) : void
manifest GenerationManifest
options GeneratorOptions
리턴 void

UpdateUnitTestProjectReferences() 공개 정적인 메소드

Update project references in unit test projects to include any new services.
public static UpdateUnitTestProjectReferences ( GeneratorOptions options ) : void
options GeneratorOptions
리턴 void