Example #1
0
        protected virtual object GetTargetInstance(ICacheDependencyScope scope)
        {
            var instance = scope.CreateInstance(MethodInfo.DeclaringType);
            var target   = _instanceTargetField != null?_instanceTargetField.GetValue(instance) : instance;

            return(target);
        }
Example #2
0
 protected virtual object GetTargetInstance(ICacheDependencyScope scope)
 {
     var instance = scope.CreateInstance(MethodInfo.DeclaringType);
     var target = _instanceTargetField != null ? _instanceTargetField.GetValue(instance) : instance;
     return target;
 }
 /// <summary>
 /// Not support in WebAPI
 /// </summary>
 /// <param name="scope"></param>
 /// <returns></returns>
 protected override object GetTargetInstance(ICacheDependencyScope scope)
 {
     throw new NotSupportedException();
 }
Example #4
0
 /// <summary>
 /// Not support in WebAPI
 /// </summary>
 /// <param name="scope"></param>
 /// <returns></returns>
 protected override object GetTargetInstance(ICacheDependencyScope scope)
 {
     throw new NotSupportedException();
 }