示例#1
0
        internal static ConfigurationOption ConfigurationOptionFromDTO(this ConfigurationOptionDTO sourceOption)
        {
            var result = new ConfigurationOption(sourceOption.Name, sourceOption.Description);

            result.AddApplications(sourceOption.Applications);
            result.AddRuntimes(sourceOption.Runtimes);

            return(result);
        }
示例#2
0
        internal static ConfigurationOptionDTO ConfigurationOptionsToDTO(this ConfigurationOption sourceOption)
        {
            var result = new ConfigurationOptionDTO
            {
                Name         = sourceOption.Name,
                Description  = sourceOption.Description,
                Applications = sourceOption.Applications.ToArray(),
                Runtimes     = sourceOption.Runtimes.ToArray(),
            };

            return(result);
        }