| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- //
- // System.Data.ProviderBase.DbConnectionPoolOptions
- //
- // Author:
- // Tim Coleman ([email protected])
- //
- // Copyright (C) Tim Coleman, 2003
- //
- #if NET_1_2
- using System.Data.Common;
- namespace System.Data.ProviderBase {
- public sealed class DbConnectionPoolOptions
- {
- #region Fields
- bool poolByIdentity;
- int creationTimeout;
- bool hasTransactionAffinity;
- int loadBalanceTimeout;
- int maxPoolSize;
- int minPoolSize;
- bool useDeactivateQueue;
- #endregion // Fields
- #region Constructors
-
- [MonoTODO]
- public DbConnectionPoolOptions (bool poolByIdentity, int minPoolSize, int maxPoolSize, int creationTimeout, int loadBalanceTimeout, bool hasTransactionAffinity, bool useDeactivateQueue)
- {
- this.poolByIdentity = poolByIdentity;
- this.minPoolSize = minPoolSize;
- this.maxPoolSize = maxPoolSize;
- this.creationTimeout = creationTimeout;
- this.loadBalanceTimeout = loadBalanceTimeout;
- this.hasTransactionAffinity = hasTransactionAffinity;
- this.useDeactivateQueue = useDeactivateQueue;
- }
- #endregion // Constructors
- #region Properties
- public int CreationTimeout {
- get { return creationTimeout; }
- }
- public bool HasTransactionAffinity {
- get { return hasTransactionAffinity; }
- }
- public int LoadBalanceTimeout {
- get { return loadBalanceTimeout; }
- }
- public int MaxPoolSize {
- get { return maxPoolSize; }
- }
- public int MinPoolSize {
- get { return minPoolSize; }
- }
- public bool PoolByIdentity {
- get { return poolByIdentity; }
- }
- public bool UseDeactivateQueue {
- get { return useDeactivateQueue; }
- }
- [MonoTODO]
- public bool UseLoadBalancing {
- get { throw new NotImplementedException (); }
- }
- #endregion // Properties
- }
- }
- #endif
|