如何创建一个侦听目录的 Windows 服务,然后将其通过 sftp 传输到本地目录
我正在寻找一个起点,并且我知道我的解决方案必须将 MSMQ 纳入其中。
我有一台服务器,用户可以将文件放入目录中。我有一个监听目录的客户端,当某些内容被放入该目录时,客户端 SFTP 会将其传输到本地目录。
有人可以告诉我我可能需要哪些技术来实现这一点吗?
以前的开发人员使用了 Top Shelf 和 Mass Transit,但我们被要求创建自己的版本,因为我们不需要这两个项目中提供的所有功能。这个以及那两个开源项目都不太可靠。
谢谢。
I'm looking for a starting point and I know my solution has to incorporate MSMQ as part of it.
I have a server that users drop a file into a directory. I have a client that listens to the directory and when something is dropped into that directory the client SFTP's it to a local directory.
Can some one give me a starting point of what technologies I may need to implement this?
A previous developer used Top Shelf and Mass Transit but we have been asked to create our own version as we won't need all the functionality that is available in these two projects. That and also those two open source projects haven't been to reliable.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为如果您打算在 .net 中实现,那么查看 System.IO.FileSystemWatcher 将是一个很好的起点
I think looking at
System.IO.FileSystemWatcher
will be good starting point if you are planning to implement in .net