Class DbConnectionPoolPolicy
Inheritance
System.Object
DbConnectionPoolPolicy
Implements
IPolicy<
System.Data.Common.DbConnection>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: FreeSql.dll
Syntax
public class DbConnectionPoolPolicy : IPolicy<DbConnection>
Constructors
|
Improve this Doc
View Source
DbConnectionPoolPolicy(String, Func<DbConnection>)
Declaration
public DbConnectionPoolPolicy(string name, Func<DbConnection> connectionFactory)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Func<System.Data.Common.DbConnection> |
connectionFactory |
|
Properties
|
Improve this Doc
View Source
AsyncGetCapacity
Declaration
public int AsyncGetCapacity { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
CheckAvailableInterval
Declaration
public int CheckAvailableInterval { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
IdleTimeout
Declaration
public TimeSpan IdleTimeout { get; set; }
Property Value
| Type |
Description |
| System.TimeSpan |
|
|
Improve this Doc
View Source
IsAutoDisposeWithSystem
Declaration
public bool IsAutoDisposeWithSystem { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsThrowGetTimeoutException
Declaration
public bool IsThrowGetTimeoutException { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; set; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
PoolSize
Declaration
public int PoolSize { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
SyncGetTimeout
Declaration
public TimeSpan SyncGetTimeout { get; set; }
Property Value
| Type |
Description |
| System.TimeSpan |
|
|
Improve this Doc
View Source
Weight
Declaration
public int Weight { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
Methods
|
Improve this Doc
View Source
OnAvailable()
Declaration
public void OnAvailable()
|
Improve this Doc
View Source
OnCheckAvailable(Object<DbConnection>)
Declaration
public bool OnCheckAvailable(Object<DbConnection> obj)
Parameters
| Type |
Name |
Description |
| Object<System.Data.Common.DbConnection> |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
OnCreate()
Declaration
public DbConnection OnCreate()
Returns
| Type |
Description |
| System.Data.Common.DbConnection |
|
|
Improve this Doc
View Source
OnDestroy(DbConnection)
Declaration
public void OnDestroy(DbConnection obj)
Parameters
| Type |
Name |
Description |
| System.Data.Common.DbConnection |
obj |
|
|
Improve this Doc
View Source
OnGet(Object<DbConnection>)
Declaration
public void OnGet(Object<DbConnection> obj)
Parameters
| Type |
Name |
Description |
| Object<System.Data.Common.DbConnection> |
obj |
|
|
Improve this Doc
View Source
OnGetAsync(Object<DbConnection>)
Declaration
public Task OnGetAsync(Object<DbConnection> obj)
Parameters
| Type |
Name |
Description |
| Object<System.Data.Common.DbConnection> |
obj |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
OnGetTimeout()
Declaration
public void OnGetTimeout()
|
Improve this Doc
View Source
OnReturn(Object<DbConnection>)
Declaration
public void OnReturn(Object<DbConnection> obj)
Parameters
| Type |
Name |
Description |
| Object<System.Data.Common.DbConnection> |
obj |
|
|
Improve this Doc
View Source
OnUnavailable()
Declaration
public void OnUnavailable()
Implements