override protected void ObtainedConnection(Connection con)
{
bool con_desired = ConnectionDesired(con.Address);
if(con_desired || con.ConType.Equals(Type)) {
if(ProtocolLog.PolicyBasedCO.Enabled) {
ProtocolLog.Write(ProtocolLog.PolicyBasedCO, String.Format(
"Connection: {0} at {1}, Desired: {2}",
con, DateTime.UtcNow, ConnectionDesired(con.Address)));
}
}
if(!con_desired && con.ConType.Equals(Type)) {
Set(con.Address);
}
}