hi
Could you share the project source code with me so I can reproduce the issue locally? That way, I can fix it quickly.
liming.ma@volosoft.com Thanks.
hi
We enhanced the feature management in >= 9.3.
Here is latest behavior: https://github.com/abpframework/abp/pull/22628#issuecomment-2804752384
hi markusbergkvist
Sorry for that. This is a regression problem. We will release 9.3.3 as soon as possible, possibly today or tomorrow.
Thanks.
hi
Override the ConfigureServicesAsync
of your startup module.
Then move all code from ConfigureServices
to ConfigureServicesAsync
Then create and configure the configurationOptions
, and finally set it to AddStackExchangeRedisCache
.
public override async Task ConfigureServicesAsync(ServiceConfigurationContext context)
{
//...
var configurationOptions = ConfigurationOptions.Parse("Your_RedisConnectionString");
await configurationOptions.ConfigureForAzureWithTokenCredentialAsync(new DefaultAzureCredential());
context.Services.AddStackExchangeRedisCache(options =>
{
options.Configuration = null;
options.ConfigurationOptions = configurationOptions;
});
//...
}
Thanks.
hi
You can call the context.Services.AddStackExchangeRedisCache(options =>
to override the default RedisCacheOptions
See https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Caching.StackExchangeRedis/Volo/Abp/Caching/StackExchangeRedis/AbpCachingStackExchangeRedisModule.cs#L21-L28
Thanks.
hi
I can't reproduce it in a new 9.2.2 template project.
Can you test your case in a new project?
Or share a minimal project to reproduce it.
See my video: https://filesupload.io/get/download/n6d2hxtz
Thanks
hi
You can add your Azure Redis connection string in appsettings.json
, then Redis will automatically get and use it.
See https://abp.io/docs/latest/framework/fundamentals/redis-cache#configuration
And you can use ABP Azure event bus.
See https://abp.io/docs/latest/framework/infrastructure/event-bus/distributed/azure Thanks.
hi
Which layout(Application, Account
) of the LeptonX theme do you want to get?
I can share the source code with you.
Thanks.
hi
The EditionDynamicClaimsPrincipalContributor
and IdentitySessionDynamicClaimsPrincipalContributor
use distributed cache internally.
I guess Redis may be slow.
I can share these DynamicClaimsPrincipalContributors
source code. Then you can add a stopwatch to check the cache performance.
Please send mail to liming.ma@volosoft.com
Thanks.
hi
Can you share the full debug logs (logs.txt
) of all your projects?
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
You can delete the logs.txt and reproduce the problem, then share it with liming.ma@volosoft.com
var loggerConfiguration = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.MinimumLevel.Override("OpenIddict", LogEventLevel.Verbose)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
IdentityModelEventSource.ShowPII = true;
IdentityModelEventSource.Logger.LogLevel = EventLevel.Verbose;
var wilsonTextLogger = new TextWriterEventListener("Logs/identitymodel.txt");
wilsonTextLogger.EnableEvents(IdentityModelEventSource.Logger, EventLevel.Verbose);
Thanks