fix 更新雪花id数据节点

This commit is contained in:
2024-02-23 21:43:09 +08:00
parent 412e5589e6
commit bd00d3d0b8
4 changed files with 16 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
<PackageReference Include="Hangfire.AspNetCore" Version="1.8.7" />
<PackageReference Include="Hangfire.Dashboard.BasicAuthorization" Version="1.0.2" />
<PackageReference Include="Hangfire.Redis.StackExchange" Version="1.9.3" />
<PackageReference Include="Kurisu.AspNetCore" Version="0.5.3" />
<PackageReference Include="Kurisu.AspNetCore" Version="0.5.4" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="6.0.26" />
</ItemGroup>

View File

@@ -29,4 +29,10 @@ public class Startup : DefaultStartup
.SetApplicationName("scheduled")
.PersistKeysToStackExchangeRedis(redis, "DataProtection-Keys");
}
public override void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
base.Configure(app, env);
app.UseSnowFlakeInit();
}
}