You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since ASP.NET Core 8.0, the return value of the ConnectAsync method in RedisCache has been changed to ValueTask. In AbpRedisCache, calling this method by reflection and forcing the return value type to Task will cause a type conversion exception.
cdlian
changed the title
AbpRedisCache.ConnectAsync will throw a type conversion exception
AbpRedisCache.ConnectAsync will throw InvalidCastException
Jun 6, 2024
Is there an existing issue for this?
Description
Since ASP.NET Core 8.0, the return value of the ConnectAsync method in RedisCache has been changed to ValueTask. In AbpRedisCache, calling this method by reflection and forcing the return value type to Task will cause a type conversion exception.
https://github.com/dotnet/aspnetcore/blob/v8.0.0/src/Caching/StackExchangeRedis/src/RedisCache.cs#L286
https://github.com/abpframework/abp/blob/rel-8.0/framework/src/Volo.Abp.Caching.StackExchangeRedis/Volo/Abp/Caching/StackExchangeRedis/AbpRedisCache.cs#L86
Reproduction Steps
No response
Expected behavior
No response
Actual behavior
No response
Regression?
No response
Known Workarounds
No response
Version
8.0.0
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: