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

Issues when casting object to messages #2

Open
FerminYang opened this issue Jun 8, 2013 · 2 comments
Open

Issues when casting object to messages #2

FerminYang opened this issue Jun 8, 2013 · 2 comments

Comments

@FerminYang
Copy link

Apworks\Bus\MessageDispatcher.cs

Line 174

Type messageType = typeof(T);

Here the T is always "object", and the if condition below will never be true.

This issue is caused by : Apworks.Bus.DirectBus\DirectBus.cs

Line 40

private readonly Queue<object> messageQueue = new Queue<object>();

Change it to:

private readonly Queue<dynamic> messageQueue = new Queue<dynamic>();

Will fix it.

This issue also exists in MSMQ Bus.

@daxnet
Copy link
Owner

daxnet commented Jul 2, 2013

Thank you for committing the issue here, and I will investigate the issues and get them fixed.

@anycmd
Copy link

anycmd commented Nov 6, 2015

daxnet已修复

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

3 participants