예제 #1
0
        public void Dispatch(TransportMessage transportMessage)
        {
            StartedGuard();

            _messageSender.Dispatch(transportMessage);
        }
예제 #2
0
 public static void SetTransportMessageReceived(this IState state, TransportMessage value)
 {
     state.Replace(StateKeys.TransportMessageReceived, value);
 }
예제 #3
0
 public void MessageHandled(TransportMessage transportMessage)
 {
 }
예제 #4
0
 public ProcessingStatus ProcessingStatus(TransportMessage transportMessage)
 {
     return(Esb.ProcessingStatus.Active);
 }
예제 #5
0
 public IEnumerable <Stream> GetDeferredMessages(TransportMessage transportMessage)
 {
     return(_empty);
 }
예제 #6
0
 public void DeferredMessageSent(TransportMessage processingTransportMessage,
                                 TransportMessage deferredTransportMessage)
 {
 }
예제 #7
0
 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));
 }
예제 #10
0
 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));
 }
예제 #14
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;
        }
예제 #15
0
 public bool AddDeferredMessage(TransportMessage processingTransportMessage,
                                TransportMessage deferredTransportMessage,
                                Stream deferredTransportMessageStream)
 {
     return(false);
 }
예제 #16
0
 public void Dispatch(TransportMessage transportMessage)
 {
     _messageSender.Dispatch(transportMessage);
 }
 public static bool HasExpired(this TransportMessage transportMessage)
 {
     return(transportMessage.ExpiryDate > _expiryDateImplementation && transportMessage.ExpiryDate < DateTime.Now);
 }