Exemple #1
0
        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));
        }
Exemple #2
0
    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();
        }
    }
Exemple #3
0
 public TransportException(TransportError error, Exception exception)
     : base("Kafka transport error", exception)
 {
     Error = error;
 }
Exemple #4
0
 public TransportException(TransportError error)
     : base("Kafka transport error")
 {
     Error = error;
 }
 void onTransportError(TransportProtocol protocol, TransportError error)
 {
     session.Stop(protocol);
 }
Exemple #6
0
 void onTransportError(TransportProtocol protocol, TransportError error)
 {
     is_done_ = true;
     session_.Stop(protocol);
 }
Exemple #7
0
 void onTransportError(TransportProtocol protocol, TransportError error)
 {
 }