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
hi
The cache default SlidingExpiration
is 20 minutes.
If you call the code to change the feature, ABP framework will invalidate the cache automatically.
hi
This is a problem in 9.3.2, we will release 9.3.3 soon.
You can use packages that < 9.3.2
Your ticket has been refunded.
Thanks.
hi
The Client validation failed
error has nothing to do with X-Frame-Options'
.
You can add https://localhost:44346/authentication/login-callback
as your client redirect_uri
Thanks.