A model used to represent different types of customizations for generating a service
Exemplo n.º 1
0
        /// <summary>
        /// Used by the generator to create a model for the service being generated
        /// </summary>
        /// <param name="serviceModelPath">Path to the file containing the model of the service</param>
        /// <param name="customizationModelPath">Path to the customizations file for the service</param>
        public ServiceModel(string serviceModelPath, string customizationModelPath)
        {
            using (var reader = new StreamReader(serviceModelPath))
                InitializeServiceModel(reader);

            this._customizationModel = new CustomizationsModel(customizationModelPath);
        }
Exemplo n.º 2
0
 public Member(ServiceModel model, Shape owningShape, string name, string defaultMarshallName, JsonData data, CustomizationsModel.PropertyModifier propertyModifier)
     : base(model, data)
 {
     this.OwningShape = owningShape;
     _name = name;
     _defaultMarshallName = defaultMarshallName;
     this.PropertyModifier = propertyModifier;
     this.PropertyInjector = null;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Used for unit testing, creates a service model from a TextReader so that the generation can be checked
 /// </summary>
 /// <param name="serviceModelReader">The reader to get the model information from</param>
 /// <param name="customizationReader">The reader to get any customizations for the service from</param>
 public ServiceModel(TextReader serviceModelReader, TextReader customizationReader)
 {
     InitializeServiceModel(serviceModelReader);
     this._customizationModel = new CustomizationsModel(customizationReader);
 }