d1ag0n
IDataProtectionBuilder.AddKeyManagementOptions
Yeah I need to ask about redis lpush and lrange because I basically copied the pattern from
https://github.com/dotnet/aspnetcore/blob/main/src/DataProtection/StackExchangeRedis/src/RedisDataProtectionBuilderExtensions.cs
https://github.com/StackExchange/StackExchange.Redis/blob/main/src/StackExchange.Redis/RedisDatabase.cs#L1334
I'm not sure what LPUSH does. Apparently it puts stuff on the left?
And LRANGE seems to go from left to right? I think it's ultimately LIFO. But I'm not sure.
9 replies
IDataProtectionBuilder.AddKeyManagementOptions
I changed from using the activator to this. Which is okay because only one instance is created now. But I still don't like that I'm getting a reference to the app. Is this some design fault on my part or it seems I'm stuck behind whatever DataProtection is doing. I guess I could make my own cookies to avoid this.
9 replies