//public bool UseOnCachePopulation = false;
        //public bool UseOnValueRead = true;
        //public bool UseOnValueCreate = false;
        //public bool UseOnValueSave = true;
        // public bool AllowSingletonPerApp = true;
        public string Convert(ConversionScenario scenario, string type, string originalValue)
        {
            switch (scenario)
            {
                case ConversionScenario.GetFriendlyValue:
                    if (type == hlnkType)
                        return TryToResolveDnnCodeToLink(originalValue);
                    break;
                case ConversionScenario.ConvertFriendlyToData:
                    if (type == hlnkType)
                        return TryToResolveOneLinkToInternalDnnCode(originalValue);
                    break;
            }

            return originalValue;
        }
Example #2
0
 public string Convert(ConversionScenario scenario, string type, string originalValue)
 {
     return originalValue;
 }