2015-04-23 51 views
2

我是新来的Akka.net活动对象模式TypedActor,我想创建一个Active Objects模式TypedActoractor代码和non-actor代码之间的桥梁。如何创建C#

我在http://doc.akka.io/docs/akka/2.3.9/java/typed-actors.html

阅读的Java文档中的示例TypedActor创建如下以上:

Squarer mySquarer = 
    TypedActor.get(system).typedActorOf(
     new TypedProps<SquarerImpl>(Squarer.class, SquarerImpl.class)); 

我不知道如何在C#做到这一点。我试图在Akka.net文档中找到此文件,但TypedActorhttp://getakka.net/docs/TypedActor)的链接不可用。在C#中找不到等效的方法。

有人可以帮忙吗?非常感谢!

回答

1

在Akka.NET中没有实现TypedActor,与当前Akka中的内容对应。我们的TypedActor实现已弃用,将来会替换为其他内容。

目前,您可以使用Inbox类作为演员和非演员代码之间的桥梁。 http://api.getakka.net/docs/stable/html/E63D0210.htm

我们正在努力改善我们的文档,给您带来不便非常抱歉:\

+0

谢谢你的信息 –

+0

是否有一个例子,如何与收件箱类工作? – Beachwalker

+0

@Beachwalker http://getakka.net/docs/Working%20with%20actors#the-inbox – Aaronontheweb