public virtual Connection GetConnection(EndPoint endPoint)
{
String lHost = endPoint.ToString();
lock (this.fCache)
{
ConnectionQueue lQueue = this.fCache.ContainsKey(lHost) ? (ConnectionQueue)this.fCache[lHost] : null;
if (lQueue != null && lQueue.Count > 0)
{
return(lQueue.Dequeue());
}
}
return(this.GetNewConnection(endPoint));
}