Book Image

Learning NServiceBus Sagas

By : Richard L Helton
Book Image

Learning NServiceBus Sagas

By: Richard L Helton

Overview of this book

Table of Contents (13 chapters)

Sample SFTP saga


In many enterprises, you may find the need to use SSH File Transfer Protocol (SFTP) to move files securely into remote environments or even to share files across multiple clients using cloud file storage systems. SFTP is a means to upload and download files across a secure network pipe. For further information, see http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol.

In this section, we will be discussing the code found in the SFTPSagaTest directory. The requirements will be similar to the previous example on the e-mail timer; except now we will be sending a file through SFTP.

We will use the same basic design, where the frontend GUI will be WPF XAML. It will call TimerSaga to set the timer. TimerSaga will send the SFTPMessage to the SFTP client, which will handle the message by the SFTPMessageHandler to establish an SFTP connection and upload a file to the SFTP server. It will work as in the following diagram:

The requirement of this application is that we set a timer...