Created
May 27, 2018 18:41
-
-
Save explorer14/7126d33627ba23b62afc214f234dc84c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class QueueBackedLoanQuoteSubmissionPipe | |
: IPipe<EnrichedLoanRequest> | |
{ | |
// this is just a simple helper library I wrote | |
private readonly SimpleQueueHelper queueHelper; | |
public QueueBackedLoanQuoteSubmissionPipe( | |
SimpleQueueHelper queueHelper) | |
{ | |
this.queueHelper = queueHelper; | |
} | |
public async Task Write(EnrichedLoanRequest payload) | |
{ | |
await queueHelper.SendMessage(payload); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment