private void RaiseTransportError(ITransport transport, Exception ex) { if (ex != null) { this.loggingService.LogError("Transport disconnected with error.", ex); } else { this.loggingService.LogError("Transport disconnected."); } TransportError?.Invoke(transport, new ErrorEventArgs(ex)); }
void onTransportError(TransportProtocol protocol, TransportError error) { if (error.type == TransportError.Type.kDisconnected) { // If the connection is lost due to external factors, trys to reconnect. //session.Connect(info.protocol); } else { // If any other error occurs, terminates the session connection. // You can try to reconnect for these errors, // but the reconnect may fail if the cause of the error is not resolved. session.Stop(); } }
public TransportException(TransportError error, Exception exception) : base("Kafka transport error", exception) { Error = error; }
public TransportException(TransportError error) : base("Kafka transport error") { Error = error; }
void onTransportError(TransportProtocol protocol, TransportError error) { session.Stop(protocol); }
void onTransportError(TransportProtocol protocol, TransportError error) { is_done_ = true; session_.Stop(protocol); }
void onTransportError(TransportProtocol protocol, TransportError error) { }