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