【问题标题】:Send Query Parameters to Actor through path通过路径向 Actor 发送查询参数
【发布时间】:2020-09-08 01:18:35
【问题描述】:

我想将 Actor 的路径用作动态 webhook,例如:

foo://example.com:8042/over/there?name=ferret#nose

是否可以根据路径将参数传递给actor引用?

以某种方式查询演员 foo://example.com:8042/over/there?name=ferret#nose,会返回带有一些 ?name=ferret#nose 上下文的 foo://example.com:8042/over/there

如果这不可能,有没有办法达到相同的结果?

【问题讨论】:

    标签: akka.net


    【解决方案1】:

    很遗憾,这是不可能的。 Akka 使用 URI 格式来描述 Actor 层次结构并定位它们,但除了为 Actor 系统及其 Actor 选择名称之外,程序员无法以任何方式自定义它。

    【讨论】:

      猜你喜欢
      • 2018-11-24
      • 2014-10-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-09
      • 1970-01-01
      • 2017-12-05
      • 2020-05-17
      相关资源
      最近更新 更多