Exemple #1
0
        internal static string WriteTo(GroupingModelConfiguration groupingModelConfiguration)
        {
            StringBuilder stringBuilder = new StringBuilder();

            using (TextWriter textWriter = new StringWriter(stringBuilder))
            {
                XmlSerializer xmlSerializer = new XmlSerializer(typeof(GroupingModelConfiguration));
                xmlSerializer.Serialize(textWriter, groupingModelConfiguration);
            }
            return(stringBuilder.ToString());
        }
Exemple #2
0
        public static GroupingModelConfiguration LoadFromFile()
        {
            string filepath = Path.Combine(ExchangeSetupContext.BinPath, "GroupingModelConfiguration.Xml");

            return(GroupingModelConfiguration.LoadFromFile(filepath));
        }
 public GroupingModelConfigurationWrapper(GroupingModelConfiguration modelConfiguration)
 {
     ArgumentValidator.ThrowIfNull("modelConfiguration", modelConfiguration);
     this.modelConfiguration = modelConfiguration;
 }