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

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