Beispiel #1
0
        public void Dispose()
        {
            if (disposed)
            {
                return;
            }

            // Abort all Models
            if (modelList.Count > 0)
            {
                foreach (var model in modelList)
                {
                    if (null != model)
                    {
                        model.Abort();
                    }
                }
            }

            threadLocalPublishChannel.Dispose();
            consumerFactory.Dispose();
            connection.Dispose();

            disposed = true;
        }
Beispiel #2
0
        public void Dispose()
        {
            consumerFactory.Dispose();
            requesterFactory.Dispose();

            subscriptionFactory.Dispose();
            publisherFactory.Dispose();

            modelFactory.Dispose();
        }
Beispiel #3
0
        public virtual void Dispose()
        {
            if (disposed)
            {
                return;
            }

            consumerFactory.Dispose();
            connection.Dispose();

            disposed = true;

            logger.DebugWrite("Connection disposed");
        }
Beispiel #4
0
        public virtual void Dispose()
        {
            if (disposed)
            {
                return;
            }

            consumerFactory.Dispose();
            confirmationListener.Dispose();
            clientCommandDispatcher.Dispose();
            connection.Dispose();

            disposed = true;
        }
Beispiel #5
0
        /// <inheritdoc />
        public virtual void Dispose()
        {
            if (disposed)
            {
                return;
            }

            foreach (var eventSubscription in eventSubscriptions)
            {
                eventSubscription.Dispose();
            }

            consumerFactory.Dispose();
            clientCommandDispatcher.Dispose();
            confirmationListener.Dispose();
            connection.Dispose();

            disposed = true;
        }