When using OrchardCore.Redis.DataProtection only:

When using OrchardCore.Redis.DataProtection together with OrchardCore.Redis.Cache:
Startup.cs
public class Startup
{
// Another code
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddHttpClient();
services.AddHsts(options =>
{
options.MaxAge = TimeSpan.FromDays(365);
options.IncludeSubDomains = true;
options.Preload = true;
});
services.Configure<CookiePolicyOptions>(options =>
{
options.Secure = CookieSecurePolicy.Always;
options.HttpOnly = HttpOnlyPolicy.Always;
options.MinimumSameSitePolicy = SameSiteMode.Lax;
});
var orchardBuilder = services.AddOrchardCms();
orchardBuilder
.AddSetupFeatures("OrchardCore.AutoSetup")
.AddTenantFeatures(
"OrchardCore.Redis",
"OrchardCore.Redis.Cache",
"OrchardCore.Redis.Lock",
"OrchardCore.Redis.DataProtection"
);
}
}
Dependencies
OrchardCore.Application.Cms.Targets 3.0.0-preview-18841
OrchardCore.Redis 3.0.0-preview-18841