feat 框架升级,代码整合
This commit is contained in:
@@ -23,12 +23,6 @@ public class Startup : DefaultStartup
|
||||
{
|
||||
base.ConfigureServices(services);
|
||||
services.AddRedis();
|
||||
|
||||
var reidConnection = Configuration.GetSection($"{nameof(RedisOptions)}:{nameof(RedisOptions.ConnectionString)}").Value;
|
||||
var redis = ConnectionMultiplexer.Connect(reidConnection);
|
||||
services.AddDataProtection()
|
||||
.SetApplicationName("yiliantong")
|
||||
.PersistKeysToStackExchangeRedis(redis, "DataProtection-Keys");
|
||||
}
|
||||
|
||||
public override void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
|
||||
Reference in New Issue
Block a user