移入 SafeObjectPool 源码

This commit is contained in:
28810
2020-03-20 21:29:53 +08:00
parent 2544db5c4b
commit 2f32e0e71c
17 changed files with 29 additions and 3 deletions

View File

@@ -105,9 +105,10 @@ namespace FreeSql.Internal.CommonProvider
public string Name { get; set; } = typeof(DbConnectionPoolPolicy).GetType().FullName;
public int PoolSize { get; set; } = 1000;
public TimeSpan SyncGetTimeout { get; set; } = TimeSpan.FromSeconds(10);
public TimeSpan IdleTimeout { get; set; } = TimeSpan.FromSeconds(50);
public TimeSpan IdleTimeout { get; set; } = TimeSpan.FromSeconds(20);
public int AsyncGetCapacity { get; set; } = 10000;
public bool IsThrowGetTimeoutException { get; set; } = true;
public bool IsAutoDisposeWithSystem { get; set; } = true;
public int CheckAvailableInterval { get; set; } = 5;
public DbConnection OnCreate()