如何在Windows服务中向nservicebus端点处理程序发送消息 [英] How to send message to nservicebus endpoint handler in windows service

查看:141
本文介绍了如何在Windows服务中向nservicebus端点处理程序发送消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了nservicebus处理程序作为Windows服务。我的客户端应用程序无法连接Windows服务处理程序。



我尝试过:



Nservicebus新手。所以我尝试了特别提供的所有样品。所有我尝试使用控制台应用程序,我能够与服务总线进行通信。但安装了nservicebus处理程序没有响应或我的方法是错误的。



我已经使用endpointname'myservice.server'安装了处理程序并启动了服务。



现在从客户端应用程序尝试发送消息endpoint.send('myservice.server',msgObject)



但它是没有打到Windows服务



如果我的方法有误,请纠正我

I have installed nservicebus handler as windows service. My client application cannot able to connect windows service handler.

What I have tried:

Am new to Nservicebus. So I tried all the samples provided by Particular. All I tried with console application and I am able to communicate the servicebus. but installed nservicebus handler not responding or my approach is wrong.

I've installed handler with endpointname 'myservice.server' and started the service.

Now from client application try to send the message endpoint.send('myservice.server', msgObject)

but it's not hitting the windows service

Please correct me if my approach is wrong

推荐答案

你的问题没有包含足够的细节来解决您的问题。



您是否进行了以下教程?



- NServiceBus快速入门 [ ^ ]

- 简介到NServiceBus [ ^ ]



这些教程可帮助您开始使用。



你用什么交通工具?如果您正在使用学习传输,请确保所有项目都是同一解决方案的一部分。如果没有,可能是因为您使用不同的解决方案,所以写入消息的文件夹是不同的。



您可以明确配置存储文件夹:



- 学习运输 - 存储目录 [ ^ ]



请仅使用此运输工具进行测试。



如果有效,请告诉我!



特定软件在 https://discuss.particular.net/ 上也有自己的论坛[ ^ ]此论坛可免费使用,并且有更多人订阅使用NServiceBus并且是或者任何其他产品是特定平台的一部分。
Your question does not contain enough details to resolve your issue.

Have you performed the following tutorials?

- NServiceBus Quick Start[^]
- Introduction to NServiceBus[^]

These tutorials help you get going.

What transport are you using? If you are using the learning transport then make sure all your projects are part of the same solution. If not, it might be that the folder where the messages are written is different because you are using different solutions.

You can configure the storage folder explicitly:

- Learning Transport - Storage Directory[^]

Please, only use this transport for testing purposes.

Let me know if that works!

Particular Software also has its own forum at https://discuss.particular.net/[^] this forum is free to use and has much more people subscribed that are using NServiceBus and is or any of the other products part of the Particular Platform.


这篇关于如何在Windows服务中向nservicebus端点处理程序发送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆