Exemplo n.º 1
0
 private void ConnectionOnConnected(ConnectionCreatedEvent @event)
 {
     if (connection.IsConnected)
     {
         OpenChannel();
     }
 }
Exemplo n.º 2
0
        private void OnConnectionCreated(ConnectionCreatedEvent @event)
        {
            var copyOfResponseActions = responseActions.Values;

            responseActions.Clear();
            responseQueues.Clear();

            // retry in-flight requests.
            foreach (var responseAction in copyOfResponseActions)
            {
                responseAction.OnFailure();
            }
        }
Exemplo n.º 3
0
 private void ConnectionOnConnected(ConnectionCreatedEvent @event)
 {
     try
     {
         OpenChannel();
     }
     catch (OperationInterruptedException)
     {
     }
     catch (EasyNetQException)
     {
     }
 }
Exemplo n.º 4
0
 private void ConnectionOnConnected(ConnectionCreatedEvent @event)
 {
     if (connection.IsConnected)
     {
         try
         {
             OpenChannel();
         }
         catch (OperationInterruptedException)
         { }
         catch (EasyNetQException)
         { }
     }
 }
Exemplo n.º 5
0
        private void OnConnectionCreated(ConnectionCreatedEvent @event)
        {
            var copyOfResponseQueues = responseQueues.Values;

            responseQueues.Clear();

            var copyOfResponseActions = responseActions.Values;

            responseActions.Clear();

            // call consumer cancellations
            foreach (var queueWithCancellation in copyOfResponseQueues)
            {
                queueWithCancellation.Cancellation.Dispose();
            }

            // finish in-flight requests
            foreach (var responseAction in copyOfResponseActions)
            {
                responseAction.OnFailure();
            }
        }
Exemplo n.º 6
0
 private void OnConnectionCreated(ConnectionCreatedEvent @event)
 {
     Connected?.Invoke(this, new ConnectedEventArgs(@event.Endpoint.HostName, @event.Endpoint.Port));
 }
Exemplo n.º 7
0
 private void ConnectionOnConnected(ConnectionCreatedEvent @event)
 {
     OpenChannel();
 }
Exemplo n.º 8
0
 private void ConnectionOnConnected(ConnectionCreatedEvent @event)
 {
     this.OpenChannel();
 }