ServiceClientGenerator.GeneratorDriver.GetStructureMarshaller C# (CSharp) Méthode

GetStructureMarshaller() private méthode

Determines the type of marshaller that needs to be generated based on the service model type
private GetStructureMarshaller ( ) : BaseRequestMarshaller
Résultat BaseRequestMarshaller
        BaseRequestMarshaller GetStructureMarshaller()
        {
            switch (this.Configuration.ServiceModel.Type)
            {
                case ServiceType.Rest_Json:
                case ServiceType.Json:
                    return new JsonRPCStructureMarshaller();
                default:
                    throw new Exception("No structure marshaller for service type: " + this.Configuration.ServiceModel.Type);
            }
        }