/// <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); }
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; }
/// <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); }