增加RCU上离线功能,能耗双通道

This commit is contained in:
2026-01-15 17:32:26 +08:00
parent b746a1da1a
commit 10bf712006
148 changed files with 8075 additions and 290 deletions

View File

@@ -14,7 +14,23 @@ namespace BLWLogProduce
builder.Services.AddHostedService<KafkaProduce>();
builder.Services.AddHostedService<MyTimer>();
builder.Services.AddMemoryCache();
builder.Services.AddMemoryCache((option)=> { });
//builder.UseOrleans(ooo =>
//{
// ooo.UseLocalhostClustering();
// ooo.AddRedisGrainStorage("redis-store", options =>
// {
// options.ConfigurationOptions = new StackExchange.Redis.ConfigurationOptions
// {
// EndPoints = { "127.0.0.1:6379" },
// AbortOnConnectFail = true,
// ConnectRetry = 5,
// ConnectTimeout = 15000,
// SyncTimeout = 15000
// };
// });
//});
var app = builder.Build();
// Configure the HTTP request pipeline.