comparison Source/Aspects/CounterAttribute.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 using System;
2
3 using BLToolkit.TypeBuilder.Builders;
4
5 namespace BLToolkit.Aspects
6 {
7 /// <summary>
8 /// http://www.bltoolkit.net/Doc/Aspects/index.htm
9 /// </summary>
10 [AttributeUsage(
11 AttributeTargets.Class |
12 AttributeTargets.Interface |
13 AttributeTargets.Property |
14 AttributeTargets.Method,
15 AllowMultiple=true)]
16 public class CounterAttribute : InterceptorAttribute
17 {
18 public CounterAttribute()
19 : this(typeof(CounterAspect), null)
20 {
21 }
22
23 public CounterAttribute(string configString)
24 : this(typeof(CounterAspect), configString)
25 {
26 }
27
28 protected CounterAttribute(Type interceptorType, string configString)
29 : base(
30 interceptorType,
31 InterceptType.BeforeCall | InterceptType.OnCatch | InterceptType.OnFinally,
32 configString,
33 TypeBuilderConsts.Priority.Normal)
34 {
35 }
36 }
37 }