Unable to combine with Microsoft.AspNetCore.DataProtection.StackExchangeRedis
See original GitHub issueDescribe the bug
When using Microsoft.Extensions.Caching.Redis and Microsoft.AspNetCore.DataProtection.StackExchangeRedis together you get an issue that ConnectionMultiplexer type exists twice.
Once in StackExchange.Redis & once in StackExchange.Redis.StrongName
The type ‘connectionmultiplexer’ exists in both ‘stackexchange.redis.strongname’ …
To Reproduce
Steps to reproduce the behavior:
- Using version ‘2.1.2’ of package ‘Microsoft.Extensions.Caching.Redis’
- Using version ‘2.2.0’ of package ‘Microsoft.AspNetCore.DataProtection.StackExchangeRedis’
var redis = StackExchange.Redis.ConnectionMultiplexer.Connect("localhost");
services.AddDataProtection()
.PersistKeysToStackExchangeRedis(redis);
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Unable to combine with Microsoft.AspNetCore. ...
Describe the bug When using Microsoft.Extensions.Caching.Redis and Microsoft.AspNetCore.DataProtection.StackExchangeRedis together you get ...
Read more >c# - .Net core session issue with StackExchangeRedis on ...
The problem is when only has one instance, everything is working. But when on multiple instances, session is null. Below is our code...
Read more >Microsoft.AspNetCore.DataProtection. ...
Version Downloads Last updated
8.0.0‑preview.7.23375.9 208 11 days ago
8.0.0‑preview.6.23329.11 570 a month ago
8.0.0‑preview.5.23302.2 1,389 2 months ago
Read more >PolicyAuthorizationResult.Forbid Method
Indicates that the access to a resource was forbidden.
Read more >How to distribute Data Protection keys with an ASP.NET ...
The Microsoft.AspNetCore.DataProtection.StackExchangeRedis package allows you to store data protection keys in a Redis cache backed by a list entry.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Nevermind,
Microsoft.Extensions.Caching.StackExchangeRedis
is the update I asked for.To clarify for folks here:
The existing package is staying on
StackExchange.Redis.StrongName
, a new packageMicrosoft.Extensions.Caching.StackExchangeRedis
was introduced that references the newStackExchange.Redis
package. The API is the same, with some minor namespace changes.This was done because the
StackExchange.Redis
2.0 release is a breaking change.Closing as I don’t think there’s actionable work for us here now. Let us know if that changes!