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

What should I do to call orleankka actor from orleans silo? #157

Closed
Neftedollar opened this issue Jun 20, 2019 · 5 comments
Closed

What should I do to call orleankka actor from orleans silo? #157

Neftedollar opened this issue Jun 20, 2019 · 5 comments

Comments

@Neftedollar
Copy link
Contributor

Hey!
How can I call orleankka's actors from Orleans?
How can I do it vice versa?

Thank you!

@Neftedollar
Copy link
Contributor Author

As I understand orleankka's actors should call Initialize method before call OnActivationAsync, but when I try to get grain via IGrainFactory it's not called and then OnActivationAsync fails with Null reference exception cause it's trying to access middleware which not initialized.

@Neftedollar
Copy link
Contributor Author

Neftedollar commented Jun 20, 2019

The simplest way is to call UseOrleanka and then inject IActorSystem as a dependency into Orleans grain.
But maybe I can do something without IActorSystem?

@yevhen
Copy link
Member

yevhen commented Jun 20, 2019

Yes, inject IActorSystem into Orleans Grain and then you can send messages to Orleankka's actors

@yevhen
Copy link
Member

yevhen commented Sep 20, 2019

@Neftedollar need any further help with this?

@Neftedollar
Copy link
Contributor Author

@yevhen no, thnx

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

2 participants