Contour.Transport.RabbitMQ.Internal.RabbitBus.StartTask C# (CSharp) Method

StartTask() private method

private StartTask ( CancellationToken cancellationToken ) : void
cancellationToken System.Threading.CancellationToken
return void
        private void StartTask(CancellationToken cancellationToken)
        {
            if (this.IsShuttingDown)
            {
                return;
            }

            this.logger.Trace(m => m("{0}: configuring.", this.Endpoint));
            this.Configure();

            this.OnStarting();

            this.Connect(cancellationToken);

            this.logger.Trace(m => m("{0}: starting components.", this.Endpoint));
            this.ComponentTracker.StartAll();

            this.logger.Trace(m => m("{0}: marking as ready.", this.Endpoint));
            this.IsStarted = true;
            this.ready.Set();

            this.OnStarted();
        }