private ConnectionPool (ConnectionOptions options) { Debug.WriteLineIf (CLI.FnTrace.Enabled, "ConnectionPool.ctor ()"); minSize = options.MinPoolSize; maxSize = options.MaxPoolSize; lifetime = options.ConnectionLifetime; expirationTimer = new Timer (new TimerCallback (ExpireConnections), null, 1000, 1000); if (options.Enlist) dtcPool = new ResourcePool (new ResourcePool.TransactionEndDelegate (this.DistributedTransactionEnd)); }
public ResourcePool (ResourcePool.TransactionEndDelegate cb) { // this.cb = cb; }