public void Dispatch(TransportMessage transportMessage) { StartedGuard(); _messageSender.Dispatch(transportMessage); }
public static void SetTransportMessageReceived(this IState state, TransportMessage value) { state.Replace(StateKeys.TransportMessageReceived, value); }
public void MessageHandled(TransportMessage transportMessage) { }
public ProcessingStatus ProcessingStatus(TransportMessage transportMessage) { return(Esb.ProcessingStatus.Active); }
public IEnumerable <Stream> GetDeferredMessages(TransportMessage transportMessage) { return(_empty); }
public void DeferredMessageSent(TransportMessage processingTransportMessage, TransportMessage deferredTransportMessage) { }
public void ProcessingCompleted(TransportMessage transportMessage) { }
public static bool CompressionEnabled(this TransportMessage transportMessage) { return(!string.IsNullOrEmpty(transportMessage.CompressionAlgorithm) && !transportMessage.CompressionAlgorithm.Equals("none", StringComparison.InvariantCultureIgnoreCase)); }
public static bool HasSenderInboxWorkQueueUri(this TransportMessage transportMessage) { return(!string.IsNullOrEmpty(transportMessage.SenderInboxWorkQueueUri)); }
public IMessageSender CreateHandlerContext(ITransportMessageFactory transportMessageFactory, IPipelineFactory pipelineFactory, ISubscriptionManager subscriptionManager, TransportMessage transportMessage, object message, CancellationToken cancellationToken) { return(_constructorInvoker(transportMessageFactory, pipelineFactory, subscriptionManager, transportMessage, message, cancellationToken)); }
public static void StopIgnoring(this TransportMessage transportMessage) { transportMessage.IgnoreTillDate = DateTime.MinValue; }
public static bool IsIgnoring(this TransportMessage transportMessage) { return(DateTime.Now < transportMessage.IgnoreTillDate); }
public static void RegisterFailure(this TransportMessage transportMessage, string message) { transportMessage.RegisterFailure(message, TimeSpan.FromMilliseconds(0)); }
public HandlerContext(IServiceBusConfiguration configuration, ITransportMessageFactory transportMessageFactory, IPipelineFactory pipelineFactory, ISubscriptionManager subscriptionManager, TransportMessage transportMessage, T message, IThreadState activeState) { Guard.AgainstNull(configuration, "configuration"); Guard.AgainstNull(transportMessage, "transportMessage"); Guard.AgainstNull(message, "message"); Guard.AgainstNull(activeState, "activeState"); _messageSender = new MessageSender(transportMessageFactory, pipelineFactory, subscriptionManager, transportMessage); TransportMessage = transportMessage; Message = message; ActiveState = activeState; Configuration = configuration; }
public bool AddDeferredMessage(TransportMessage processingTransportMessage, TransportMessage deferredTransportMessage, Stream deferredTransportMessageStream) { return(false); }
public void Dispatch(TransportMessage transportMessage) { _messageSender.Dispatch(transportMessage); }
public static bool HasExpired(this TransportMessage transportMessage) { return(transportMessage.ExpiryDate > _expiryDateImplementation && transportMessage.ExpiryDate < DateTime.Now); }