Пример #1
0
 /// <summary>
 /// 拦截器调用
 /// </summary>
 public object CallInterecptor(AspectMetadata metadata)
 {
     Interceptor(metadata);
     return(metadata.Return);
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="metadata"></param>
 public override void Interceptor(AspectMetadata metadata)
 {
     metadata.Processed();
 }
Пример #3
0
 /// <summary>
 /// 拦截器处理
 /// </summary>
 /// <param name="metadata">目标元数据</param>
 public abstract void Interceptor(AspectMetadata metadata);