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

Error with IMessageHandler in AmazonSQS #1

Open
sboopal opened this issue Apr 23, 2023 · 3 comments
Open

Error with IMessageHandler in AmazonSQS #1

sboopal opened this issue Apr 23, 2023 · 3 comments

Comments

@sboopal
Copy link

sboopal commented Apr 23, 2023

Getting error message in the MessageDispatcher as below.

The interface 'IMessageHandler' cannot be used as type argument. Static member 'IMessageHandler.MessageType' does not have a most specific implementation in the interface.

I have tried below config

net7.0
enable
enable
preview

and also with net6.0 but still same error.

I am using the latest VS2022 as well.

@sboopal sboopal changed the title Error with IMessageHandler Error with IMessageHandler in AmazonSQS Apr 23, 2023
@aziz-zoubai
Copy link

Hello,
I m facing in that issue, Any solution?

Thanks

@fhenriquezn
Copy link

Hello, I'm facing the same issue, it seems that we can't use public static abstract Type MessageType { get; } in IMessageHandler interface. I tried everything he said on youtube, but none of that worked & i also tried more options, Help please. @Elfocrash

@JanHergenhan
Copy link

As he mentioned in the video that it is an experimental feature, I suspect that the final specification is different.
My solution was to leave it out and actually provide the dictionary manually as in the commented code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants