Skip to content

Commit 4cf3531

Browse files
committed
Add ExecutionTimeout
1 parent 5f31ffe commit 4cf3531

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

src/Infrastructure/BotSharp.Abstraction/Repositories/BotSharpDatabaseSettings.cs

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ namespace BotSharp.Abstraction.Repositories;
22

33
public class BotSharpDatabaseSettings : DatabaseBasicSettings
44
{
5-
public string[] Assemblies { get; set; }
6-
public string FileRepository { get; set; }
7-
public string BotSharpMongoDb { get; set; }
8-
public string TablePrefix { get; set; }
9-
public DbConnectionSetting BotSharp { get; set; }
10-
public string Redis { get; set; }
5+
public string[] Assemblies { get; set; } = [];
6+
public string FileRepository { get; set; } = string.Empty;
7+
public string BotSharpMongoDb { get; set; } = string.Empty;
8+
public string TablePrefix { get; set; } = string.Empty;
9+
public DbConnectionSetting BotSharp { get; set; } = new();
10+
public string Redis { get; set; } = string.Empty;
11+
public bool EnableReplica { get; set; } = true;
1112
}
1213

1314
public class DatabaseBasicSettings
1415
{
15-
public string Default { get; set; }
16-
public DbConnectionSetting DefaultConnection { get; set; }
16+
public string Default { get; set; } = string.Empty;
17+
public DbConnectionSetting DefaultConnection { get; set; } = new();
1718
public bool EnableSqlLog { get; set; }
1819
public bool EnableSensitiveDataLogging { get; set; }
1920
public bool EnableRetryOnFailure { get; set; }
@@ -23,9 +24,11 @@ public class DbConnectionSetting
2324
{
2425
public string Master { get; set; }
2526
public string[] Slavers { get; set; }
27+
public int ConnectionTimeout { get; set; } = 30;
28+
public int ExecutionTimeout { get; set; } = 30;
2629

2730
public DbConnectionSetting()
2831
{
29-
Slavers = new string[0];
32+
Slavers = [];
3033
}
3134
}

src/Infrastructure/BotSharp.Core/BotSharp.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
<ItemGroup>
191191
<PackageReference Include="Aspects.Cache" Version="2.0.4" />
192192
<PackageReference Include="DistributedLock.Redis" Version="1.0.3" />
193-
<PackageReference Include="EntityFrameworkCore.BootKit" Version="8.5.1" />
193+
<PackageReference Include="EntityFrameworkCore.BootKit" Version="8.6.0" />
194194
<PackageReference Include="Fluid.Core" Version="2.11.1" />
195195
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
196196
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />

src/Plugins/BotSharp.Plugin.MongoStorage/BotSharp.Plugin.MongoStorage.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Aspire.MongoDB.Driver" Version="8.0.1" />
15-
<PackageReference Include="MongoDB.Driver" Version="2.28.0" />
14+
<PackageReference Include="Aspire.MongoDB.Driver" Version="8.2.2" />
15+
<PackageReference Include="MongoDB.Driver" Version="3.0.0" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

0 commit comments

Comments
 (0)