Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/WM7S8.png" height="16" width="18" alt="" class="sponsor tag img">servicestack ServiceStack消息通过RabbitMq路由到动词而不是POST_<img Src="//i.stack.imgur.com/WM7S8.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">servicestack_Rabbitmq - Fatal编程技术网 servicestack ServiceStack消息通过RabbitMq路由到动词而不是POST,servicestack,rabbitmq,servicestack,Rabbitmq" /> servicestack ServiceStack消息通过RabbitMq路由到动词而不是POST,servicestack,rabbitmq,servicestack,Rabbitmq" />

servicestack ServiceStack消息通过RabbitMq路由到动词而不是POST

servicestack ServiceStack消息通过RabbitMq路由到动词而不是POST,servicestack,rabbitmq,servicestack,Rabbitmq,在这里使用servicestack和rabbitmq实现服务总线 文档声明“每个消息将由最匹配的ServiceStack服务执行,该服务使用Post或任何回退动词处理消息” 那么,我将如何将已发布的消息从客户端路由发送到PUT 提前感谢您的建议或样品 每个消息将由最匹配的ServiceStack服务执行,该服务使用Post或任何回退动词处理消息” 此文档说明消息被视为POST请求,因此只能使用POST(请求)或Any(请求)处理程序来处理。这与ServiceStack的SOAP支持相同,其中所有

在这里使用servicestack和rabbitmq实现服务总线

文档声明“每个消息将由最匹配的ServiceStack服务执行,该服务使用Post或任何回退动词处理消息”

那么,我将如何将已发布的消息从客户端路由发送到PUT

提前感谢您的建议或样品

每个消息将由最匹配的ServiceStack服务执行,该服务使用Post或任何回退动词处理消息”

此文档说明消息被视为
POST
请求,因此只能使用
POST(请求)
Any(请求)
处理程序来处理。这与ServiceStack的SOAP支持相同,其中所有SOAP请求都是
POST
,您可以通过()并使用
Any()
实现它们,以便
PUT
POST
请求仍然可以访问它们,例如:

[Route("/customers", "POST"]
public class CreateCustomer { ... }

[Route("/customers/{Id}", "PUT"]
public class UpdateCustomer { ... }

public class CustomerService : Service
{
    public object Any(CreateCustomer request) { ... }
    public object Any(UpdateCustomer request) { ... }
}

此服务允许通过
POST/customers
PUT/customers/1
HTTP路由访问服务,同时仍然允许通过SOAP/MQ访问这些路由。

感谢您提供此信息。正在修订实现。