public MessageEndpointContext( IEnumerable <DomainMessage> processedSuccessfully, IEnumerable <DomainMessage> processedUnsuccessfully, IEnumerable <DomainMessage> unprocessed, MessageEndpointName sourceQueue) { Unprocessed = unprocessed.ToList(); ProcessedSuccessfully = processedSuccessfully.ToList(); ProcessedUnsuccessfully = processedUnsuccessfully.ToList(); SourceQueue = sourceQueue; }
public MessageEndpoint( MessageEndpointName name, HttpChannel channel, long lastSuccessfullyProcessedMessage, uint defaultPollingDelayMs, Dictionary <HttpChannelPoller.PollingError, uint> pollingErrorDelays) { Channel = channel; LastSuccessfullyProcessedMessage = lastSuccessfullyProcessedMessage; Name = name; DefaultDelayMs = defaultPollingDelayMs; PollingErrorDelays = pollingErrorDelays; }
public PollState( MessageEndpointName messageEndpointName, uint defaultDelayMs, Dictionary <HttpChannelPoller.PollingError, uint> pollingErrorDelayPolicy, long lastMessageSuccessfullyProcessed, string nextUrl, uint delayMs) { NextUrl = nextUrl; DelayMs = delayMs; DefaultDelayMs = defaultDelayMs; LastMessageSuccessfullyProcessed = lastMessageSuccessfullyProcessed; MessageEndpointName = messageEndpointName; PollingErrorDelayPolicy = pollingErrorDelayPolicy; }
public static IProcessMessageResult ProcessMessage( DomainMessage message, MessageEndpointName queueName, Func <Type, Action <DomainMessageProcessingContext, object> > processors) { Logger.Trace($"ProcessMessage: {message.Header}"); var context = new DomainMessageProcessingContext( new Retries(HandlerRetryCount), message.Header, queueName ); Either <DeserializeError, object> msg2 = new Either <DeserializeError, object>(message.Message); return(msg2.Match( e => new DeserializationError(e.Exception), msg3 => ProcessMsg(msg3, context, processors))); }
public static MessageEndpointContext Start(MessageEndpointName sourceQueue) { return(new MessageEndpointContext(sourceQueue)); }