///<summary>Try to find a sender, if it exists, add to the dictionaries</summary> virtual protected bool TryGetSender(Address dst, out ISender sender) { // Let's see if we have a connection Connection con = GetConnection(dst); if (con == null) { sender = null; return(false); } sender = new ConSenderWrapper(con); AddConnection(con.Address, sender); return(true); }
///<summary>Try to find a sender, if it exists, add to the dictionaries</summary> virtual protected bool TryGetSender(Address dst, out ISender sender) { // Let's see if we have a connection Connection con = GetConnection(dst); if(con == null) { sender = null; return false; } sender = new ConSenderWrapper(con); AddConnection(con.Address, sender); return true; }