Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbpRedisCache.ConnectAsync will throw InvalidCastException #19985

Closed
1 task done
cdlian opened this issue Jun 6, 2024 · 0 comments
Closed
1 task done

AbpRedisCache.ConnectAsync will throw InvalidCastException #19985

cdlian opened this issue Jun 6, 2024 · 0 comments
Assignees
Milestone

Comments

@cdlian
Copy link
Contributor

cdlian commented Jun 6, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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

image

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

@cdlian cdlian added the bug label Jun 6, 2024
@cdlian cdlian changed the title AbpRedisCache.ConnectAsync will throw a type conversion exception AbpRedisCache.ConnectAsync will throw InvalidCastException Jun 6, 2024
@maliming maliming assigned maliming and realLiangshiwei and unassigned maliming Jun 6, 2024
@realLiangshiwei realLiangshiwei added this to the 8.0-patch milestone Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants