2 Commits

Author SHA1 Message Date
Elivo e6cbf2f5b3 引用 SQLite NuGet 包 2 weeks ago
Elivo a742c68ff6 Cron,修正重载冲突 2 weeks ago
  1. 10
      Apewer.Source/Apewer.Source.csproj
  2. 2
      Apewer/CronAttribute.cs

10
Apewer.Source/Apewer.Source.csproj

@ -12,7 +12,7 @@
<ItemGroup>
<ProjectReference Include="..\Apewer\Apewer.csproj" />
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.110" PrivateAssets="all" />
<!--<PackageReference Include="System.Data.SQLite.Core" Version="1.0.110" PrivateAssets="all" />-->
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
@ -20,11 +20,19 @@
<PackageReference Include="System.Data.SqlClient" Version="4.4.3" />
<PackageReference Include="System.Security.Permissions" Version="4.4.1" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.4.0" />
<PackageReference Include="Stub.System.Data.SQLite.Core.NetStandard" Version="1.0.116" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net40'">
<Reference Include="System.Configuration" />
<Reference Include="System.Transactions" />
<PackageReference Include="Stub.System.Data.SQLite.Core.NetFramework" Version="1.0.116" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net20'">
<Reference Include="System.Configuration" />
<Reference Include="System.Transactions" />
<PackageReference Include="Stub.System.Data.SQLite.Core.NetFramework" Version="1.0.116" />
</ItemGroup>
<ItemGroup>

2
Apewer/CronAttribute.cs

@ -296,7 +296,7 @@ namespace Apewer
/// <summary>打断 Cron 循环并等待 Cron 执行结束。等待指定的时间后打断正在执行的 Cron。</summary>
/// <param name="timeout">强制打断前的等待毫秒数,指定为负数时将无限等待。</param>
public static void Break(int timeout = 20000)
public static void Break(int timeout)
{
_break = true;

Loading…
Cancel
Save