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();
}