This commit is contained in:
leomon 2023-08-29 15:44:53 +08:00
commit 6985599614
4 changed files with 12 additions and 3 deletions

View File

@ -147,7 +147,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="CCIS.Shared"> <PackageReference Include="CCIS.Shared">
<Version>1.0.0</Version> <Version>1.0.0.1</Version>
</PackageReference> </PackageReference>
<PackageReference Include="Costura.Fody"> <PackageReference Include="Costura.Fody">
<Version>5.7.0</Version> <Version>5.7.0</Version>

View File

@ -14,6 +14,7 @@ using System.Xml.Linq;
using CCIS.Shared; using CCIS.Shared;
using Serilog; using Serilog;
using Serilog.Core; using Serilog.Core;
using Microsoft.Extensions.DependencyInjection;
namespace AIMS namespace AIMS
{ {
@ -37,6 +38,8 @@ namespace AIMS
Log.Information("Hello, {Name}!", Environment.UserName); Log.Information("Hello, {Name}!", Environment.UserName);
SharedContext.CreateDefault(args); SharedContext.CreateDefault(args);
Log.Information("Initialising."); Log.Information("Initialising.");
var cleanrService = SharedContext.StaticInstance.ServiceProvider.GetService<IClearService>();
cleanrService?.ClearAsync();
MainStart(args); MainStart(args);
Log.Information("Finsh."); Log.Information("Finsh.");
} }

View File

@ -1,6 +1,12 @@
{ {
"ApplicationConfig": {
"ClearConfig": {
"EnableClear": true,
"StartupDeletePattern": "*.dll"
}
},
"Serilog": { "Serilog": {
"Using": [ "Using": [
//"Serilog.Sinks.Console", //"Serilog.Sinks.Console",
//"Serilog.Sinks.Debug", //"Serilog.Sinks.Debug",
"Serilog.Sinks.Seq", "Serilog.Sinks.Seq",

View File

@ -109,7 +109,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="CCIS.Shared"> <PackageReference Include="CCIS.Shared">
<Version>1.0.0</Version> <Version>1.0.0.1</Version>
</PackageReference> </PackageReference>
<PackageReference Include="Newtonsoft.Json"> <PackageReference Include="Newtonsoft.Json">
<Version>13.0.3</Version> <Version>13.0.3</Version>