Files
mono/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionPoolOptions.cs
T
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00

85 lines
1.7 KiB
C#

//
// System.Data.ProviderBase.DbConnectionPoolOptions
//
// Author:
// Tim Coleman ([email protected])
//
// Copyright (C) Tim Coleman, 2003
//
#if NET_2_0
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