初始化

This commit is contained in:
2025-11-21 08:48:01 +08:00
commit b4d684a84c
202 changed files with 28585 additions and 0 deletions

43
回收/Program.cs Normal file
View File

@@ -0,0 +1,43 @@
using System.Timers;
using CliWrap;
using CliWrap.Buffered;
using Common;
namespace
{
internal class Program
{
public static System.Timers.Timer timer;
async static Task Main(string[] args)
{
timer = new System.Timers.Timer();
timer.Elapsed += Timer_Elapsed;
timer.Interval = 20000;
timer.Start();
Console.ReadLine();
}
static void Timer_Elapsed(object? sender, ElapsedEventArgs e)
{
try
{
Console.WriteLine("go...");
string Key = "IISRecycle";
int isnew = CSRedisCacheHelper.redis3.Get<int>(Key);
if (isnew == 1)
{
Console.WriteLine("回收了");
var cmd = Cli.Wrap("1.cmd")
.WithWorkingDirectory("D:\\BLW_Data\\cricsSQL")
.ExecuteBufferedAsync();
CSRedisCacheHelper.redis3.Set(Key, 0);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}
}

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>bin\Release\net8.0\publish\win-x64\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<_TargetId>Folder</_TargetId>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
<PublishReadyToRun>false</PublishReadyToRun>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>True|2025-08-26T07:21:29.5034370Z||;True|2025-08-26T15:16:46.4013959+08:00||;True|2025-08-26T15:07:26.0874195+08:00||;True|2025-08-26T15:06:56.8708063+08:00||;True|2025-08-26T15:06:37.5140254+08:00||;True|2025-08-26T15:06:26.3756042+08:00||;True|2025-08-26T14:48:29.3506426+08:00||;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>

18
回收/回收.csproj Normal file
View File

@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CliWrap" Version="3.9.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CommonTools\CommonTools.csproj" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_LastSelectedProfileId>E:\tian\BLS\BLWLogServer\回收\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
</PropertyGroup>
</Project>