public MethodTimeInterceptor(IMethodTimeLogger logger)
 {
     this.methodTimeLogger                  = logger;
     this.stopwatchPool.MinObjectCount      = 1;
     this.stopwatchPool.PooledObjectCreator = this;
     this.stopwatchPool.Initialize();
 }
Exemple #2
0
 public MethodTimeInterceptor(IMethodTimeLogger logger)
 {
     this.timeLogArounderPool = new ObjectPool <TimeLogArounder>();
     this.methodTimeLogger    = logger;
     this.timeLogArounderPool.MinObjectCount      = 1;
     this.timeLogArounderPool.PooledObjectCreator = this;
     this.timeLogArounderPool.Initialize();
 }
Exemple #3
0
 public TimeLogArounder(IObjectPool <TimeLogArounder> pool, IMethodTimeLogger logger)
 {
     this.objectPool       = pool;
     this.methodTimeLogger = logger;
 }