public AsyncQueueAdder(Message message, bool isLast, TimeSpan timeout, object state, TransmissionStrategy strategy, AsyncCallback callback, object asyncState) : base(timeout, true, callback, asyncState)
 {
     this.attemptInfo = new MessageAttemptInfo();
     this.attemptInfo = new MessageAttemptInfo(message, 0L, 0, state);
     this.isLast      = isLast;
     this.strategy    = strategy;
     base.Begin();
 }
 public AsyncQueueAdder(Message message, bool isLast, TimeSpan timeout, object state, TransmissionStrategy strategy, AsyncCallback callback, object asyncState)
     : base(timeout, true, callback, asyncState)
 {
     // MessageAttemptInfo(Message message, Int64 sequenceNumber, int retryCount, object state)
     // this.attemptInfo is just a state bag, thus sequenceNumber can be 0 and should never be read.
     this.attemptInfo = new MessageAttemptInfo(message, 0, 0, state);
     this.isLast      = isLast;
     this.strategy    = strategy;
     base.Begin();
 }
 public ReliableOutputConnection(UniqueId id, int maxTransferWindowSize, System.ServiceModel.Channels.MessageVersion messageVersion, ReliableMessagingVersion reliableMessagingVersion, TimeSpan initialRtt, bool requestAcks, TimeSpan sendTimeout)
 {
     this.id                           = id;
     this.messageVersion               = messageVersion;
     this.reliableMessagingVersion     = reliableMessagingVersion;
     this.sendTimeout                  = sendTimeout;
     this.strategy                     = new TransmissionStrategy(reliableMessagingVersion, initialRtt, maxTransferWindowSize, requestAcks, id);
     this.strategy.RetryTimeoutElapsed = new RetryHandler(this.OnRetryTimeoutElapsed);
     this.strategy.OnException         = new ComponentExceptionHandler(this.RaiseOnException);
 }
 public ReliableOutputConnection(UniqueId id, int maxTransferWindowSize, System.ServiceModel.Channels.MessageVersion messageVersion, ReliableMessagingVersion reliableMessagingVersion, TimeSpan initialRtt, bool requestAcks, TimeSpan sendTimeout)
 {
     this.id = id;
     this.messageVersion = messageVersion;
     this.reliableMessagingVersion = reliableMessagingVersion;
     this.sendTimeout = sendTimeout;
     this.strategy = new TransmissionStrategy(reliableMessagingVersion, initialRtt, maxTransferWindowSize, requestAcks, id);
     this.strategy.RetryTimeoutElapsed = new RetryHandler(this.OnRetryTimeoutElapsed);
     this.strategy.OnException = new ComponentExceptionHandler(this.RaiseOnException);
 }
 public ReliableOutputConnection(UniqueId id,
                                 int maxTransferWindowSize,
                                 MessageVersion messageVersion,
                                 ReliableMessagingVersion reliableMessagingVersion,
                                 TimeSpan initialRtt,
                                 bool requestAcks,
                                 TimeSpan sendTimeout)
 {
     _id                          = id;
     MessageVersion               = messageVersion;
     _reliableMessagingVersion    = reliableMessagingVersion;
     _sendTimeout                 = sendTimeout;
     Strategy                     = new TransmissionStrategy(reliableMessagingVersion, initialRtt, maxTransferWindowSize, requestAcks, id);
     Strategy.RetryTimeoutElapsed = OnRetryTimeoutElapsed;
     Strategy.OnException         = RaiseOnException;
 }
 public ReliableOutputConnection(UniqueId id,
     int maxTransferWindowSize,
     MessageVersion messageVersion,
     ReliableMessagingVersion reliableMessagingVersion,
     TimeSpan initialRtt,
     bool requestAcks,
     TimeSpan sendTimeout)
 {
     this.id = id;
     this.messageVersion = messageVersion;
     this.reliableMessagingVersion = reliableMessagingVersion;
     this.sendTimeout = sendTimeout;
     this.strategy = new TransmissionStrategy(reliableMessagingVersion, initialRtt, maxTransferWindowSize,
         requestAcks, id);
     this.strategy.RetryTimeoutElapsed = OnRetryTimeoutElapsed;
     this.strategy.OnException = RaiseOnException;
 }
 public WaitQueueAdder(TransmissionStrategy strategy, Message message, bool isLast, object state)
 {
     this.strategy = strategy;
     this.isLast = isLast;
     this.attemptInfo = new MessageAttemptInfo(message, 0L, 0, state);
 }
 public static MessageAttemptInfo End(TransmissionStrategy.AsyncQueueAdder result)
 {
     AsyncResult.End<TransmissionStrategy.AsyncQueueAdder>(result);
     return result.attemptInfo;
 }
 public AsyncQueueAdder(Message message, bool isLast, TimeSpan timeout, object state, TransmissionStrategy strategy, AsyncCallback callback, object asyncState) : base(timeout, true, callback, asyncState)
 {
     this.attemptInfo = new MessageAttemptInfo();
     this.attemptInfo = new MessageAttemptInfo(message, 0L, 0, state);
     this.isLast = isLast;
     this.strategy = strategy;
     base.Begin();
 }
Ejemplo n.º 10
0
 public AsyncWaitQueueAdder(TransmissionStrategy strategy, Message message, bool isLast, object state)
 {
     _strategy    = strategy;
     _isLast      = isLast;
     _attemptInfo = new MessageAttemptInfo(message, 0, 0, state);
 }
 public WaitQueueAdder(TransmissionStrategy strategy, Message message, bool isLast, object state)
 {
     this.strategy    = strategy;
     this.isLast      = isLast;
     this.attemptInfo = new MessageAttemptInfo(message, 0, 0, state);
 }
 public AsyncQueueAdder(Message message, bool isLast, TimeSpan timeout, object state, TransmissionStrategy strategy, AsyncCallback callback, object asyncState)
     : base(timeout, true, callback, asyncState)
 {
     // MessageAttemptInfo(Message message, Int64 sequenceNumber, int retryCount, object state)
     // this.attemptInfo is just a state bag, thus sequenceNumber can be 0 and should never be read.
     this.attemptInfo = new MessageAttemptInfo(message, 0, 0, state);
     this.isLast = isLast;
     this.strategy = strategy;
     base.Begin();
 }