Add ExecutionTimeout
This commit is contained in:
parent
5f31ffe658
commit
4cf3531c32
|
|
@ -2,18 +2,19 @@ namespace BotSharp.Abstraction.Repositories;
|
|||
|
||||
public class BotSharpDatabaseSettings : DatabaseBasicSettings
|
||||
{
|
||||
public string[] Assemblies { get; set; }
|
||||
public string FileRepository { get; set; }
|
||||
public string BotSharpMongoDb { get; set; }
|
||||
public string TablePrefix { get; set; }
|
||||
public DbConnectionSetting BotSharp { get; set; }
|
||||
public string Redis { get; set; }
|
||||
public string[] Assemblies { get; set; } = [];
|
||||
public string FileRepository { get; set; } = string.Empty;
|
||||
public string BotSharpMongoDb { get; set; } = string.Empty;
|
||||
public string TablePrefix { get; set; } = string.Empty;
|
||||
public DbConnectionSetting BotSharp { get; set; } = new();
|
||||
public string Redis { get; set; } = string.Empty;
|
||||
public bool EnableReplica { get; set; } = true;
|
||||
}
|
||||
|
||||
public class DatabaseBasicSettings
|
||||
{
|
||||
public string Default { get; set; }
|
||||
public DbConnectionSetting DefaultConnection { get; set; }
|
||||
public string Default { get; set; } = string.Empty;
|
||||
public DbConnectionSetting DefaultConnection { get; set; } = new();
|
||||
public bool EnableSqlLog { get; set; }
|
||||
public bool EnableSensitiveDataLogging { get; set; }
|
||||
public bool EnableRetryOnFailure { get; set; }
|
||||
|
|
@ -23,9 +24,11 @@ public class DbConnectionSetting
|
|||
{
|
||||
public string Master { get; set; }
|
||||
public string[] Slavers { get; set; }
|
||||
public int ConnectionTimeout { get; set; } = 30;
|
||||
public int ExecutionTimeout { get; set; } = 30;
|
||||
|
||||
public DbConnectionSetting()
|
||||
{
|
||||
Slavers = new string[0];
|
||||
Slavers = [];
|
||||
}
|
||||
}
|
||||
|
|
@ -190,7 +190,7 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="Aspects.Cache" Version="2.0.4" />
|
||||
<PackageReference Include="DistributedLock.Redis" Version="1.0.3" />
|
||||
<PackageReference Include="EntityFrameworkCore.BootKit" Version="8.5.1" />
|
||||
<PackageReference Include="EntityFrameworkCore.BootKit" Version="8.6.0" />
|
||||
<PackageReference Include="Fluid.Core" Version="2.11.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Aspire.MongoDB.Driver" Version="8.0.1" />
|
||||
<PackageReference Include="MongoDB.Driver" Version="2.28.0" />
|
||||
<PackageReference Include="Aspire.MongoDB.Driver" Version="8.2.2" />
|
||||
<PackageReference Include="MongoDB.Driver" Version="3.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
Loading…
Reference in a new issue