简体   繁体   English

通过Web API(C#)调用c#可执行文件中托管的akka​​.net actor

[英]calling akka.net actor hosted in c# executable through web api (c#)

I have an actor (akka.net C#) running in executable (or windows service). 我有一个在可执行文件(或Windows服务)中运行的actor(akka.net C#)。 I am trying to fetch data from that actor. 我正在尝试从该演员那里获取数据。 If I try getting it from another exe (C#) it's working fine, if I try to call it from web api (C#) it's not working. 如果我尝试从另一个exe(C#)获取它,则工作正常,如果我尝试从Web api(C#)调用它,则无法正常工作。

Is it possible to call actor hosted in exe (C# akka.net) using rest end point (in different process)? 是否可以使用其余端点(在不同进程中)调用exe(C#akka.net)中托管的actor?

I got the mistake I was doing, when I was calling the akka method from web api , I was passing string in Ask method instead of proper Message class. 我从Web api调用akka方法时遇到了我做的错误,我在Ask方法中传递了字符串,而不是正确的Message类。

My bad, apologies. 不好意思,抱歉。

Regards, Amit 问候,阿米特

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM