/// <summary> /// Trigger connection establish delegates. /// </summary> protected void TriggerConnectionEstablishDelegates() { //Call asynchronous connection establish delegates here if (NetworkComms.globalConnectionEstablishDelegatesAsync != null) { NetworkComms.CommsThreadPool.EnqueueItem(QueueItemPriority.Normal, new WaitCallback((obj) => { Connection connectionParam = obj as Connection; NetworkComms.globalConnectionEstablishDelegatesAsync(connectionParam); }), this); } //Call synchronous connection establish delegates here if (NetworkComms.globalConnectionEstablishDelegatesSync != null) { NetworkComms.globalConnectionEstablishDelegatesSync(this); } }