Skip to content

Instantly share code, notes, and snippets.

View ckimball's full-sized avatar

Clif Kimball ckimball

  • KORE Wireless
  • Cincinnati, OH
View GitHub Profile
@ckimball
ckimball / gist:9e4a9932970d0d584dcb713b38a2a057
Created April 6, 2016 19:38
Notification Processing Rewrite
/// <summary>
/// Attempt to process the RabbitMQ message for the subscriber notification
/// </summary>
/// <param name="message"></param>
/// <param name="retryCount"></param>
/// <returns></returns>
private IoEither<Failure, Unit> ProcessMessage(IConsumeContext<ProcessSubscriberNotification> message, int retryCount)
{
Func<IConsumeContext<ProcessSubscriberNotification>, string, int, IoEither<Failure, Unit>> delayMessageProcessing = (m, log, delay) =>
from _0 in Logger.DebugU($"STI Subscriber Notification Handler: {log}. Will retry after a delay of {delay} milliseconds.").ToIoEither<Failure, Unit>()