d1ag0n
d1ag0n
CC#
Created by d1ag0n on 1/21/2025 in #help
IDataProtectionBuilder.AddKeyManagementOptions
Okay yeah I read that lastnight and I guess I was tired.
9 replies
CC#
Created by d1ag0n on 1/21/2025 in #help
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
CC#
Created by d1ag0n on 1/21/2025 in #help
IDataProtectionBuilder.AddKeyManagementOptions
I'm not using EF.
9 replies
CC#
Created by d1ag0n on 1/21/2025 in #help
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.
c#
var db = app.Services.GetRequiredService<MyDatabaseService>();
c#
var db = app.Services.GetRequiredService<MyDatabaseService>();
9 replies
CC#
Created by monkeyoohlala on 1/20/2025 in #help
✅ Error when loading due to norton antivirus
Access denied is permissions. If you're trying to run this app from IIS it's likely granting the IIS user access to the path would resolve this.
23 replies