Skip to content

Instantly share code, notes, and snippets.

@explorer14
Created May 27, 2018 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save explorer14/7126d33627ba23b62afc214f234dc84c to your computer and use it in GitHub Desktop.
Save explorer14/7126d33627ba23b62afc214f234dc84c to your computer and use it in GitHub Desktop.
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