Example #1
0
        internal static void RegisterDeltaTrackerConverter(Type converterType, AppStateJsonConverter att)
        {
            var modelTypeID = TypeCacheUtils.GetModelTypedInt(att.Model);

            if (modelTypeID <= 0)
            {
                throw new ArgumentException("A Delta Tracker Converter cannot be registered for type " + att.Model);
            }
            var converter = converterType.DelegateForCallMethod("ProcessDelta", new Type[] { typeof(object), typeof(object) });

            converters.Add(modelTypeID, converter);
        }
Example #2
0
        public object GetValue(object target)
        {
            var itarget = target as IStateObject;

            return(TypeCacheUtils.GetModelTypedInt(itarget));
        }