ServiceClientGenerator.GeneratorDriver.GenerateRequest C# (CSharp) Метод

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
        void GenerateRequest(Operation operation)
        {
            var requestGenerator = new StructureGenerator
            {
                ClassName = operation.Name + "Request",
                BaseClass = string.Format("Amazon{0}Request", Configuration.BaseName),
                StructureType = StructureType.Request,
                Operation = operation
            };
            if (operation.RequestStructure != null)
            {
                requestGenerator.Structure = this.Configuration.ServiceModel.FindShape(operation.RequestStructure.Name);
            }

            this.ExecuteGenerator(requestGenerator, requestGenerator.ClassName + ".cs", "Model");

            if (operation.RequestStructure != null)
                this.DetermineStructuresToProcess(operation.RequestStructure, false);
        }