Ejemplo n.º 1
0
        public ValidateDataSourceConfigResult <RegistryKeyDataSource> ValidateConfig(
            ValidateDataSourceConfigInput <RegistryKeyDataSource> input)
        {
            var result = new ValidateDataSourceConfigResult <RegistryKeyDataSource>();

            if (!RegUtil.AllRootAliases.Contains(input.Config.Root))
            {
                result.Error("invalid root, must be one of:  "
                             + string.Join(" | ", RegUtil.AllRootAliases),
                             steps: new TFSteps().Attribute("root"));
            }

            return(result);
        }
 public ValidateDataSourceConfigResult <FileInfoDataSource> ValidateConfig(ValidateDataSourceConfigInput <FileInfoDataSource> input)
 {
     return(new ValidateDataSourceConfigResult <FileInfoDataSource>());
 }