private void RaiseOnException(Exception exception) { ComponentExceptionHandler onException = this.OnException; if (onException != null) { onException(exception); } }
void RaiseOnException(Exception exception) { ComponentExceptionHandler handler = this.OnException; if (handler != null) { handler(exception); } }
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); }