/// <summary> /// See <code>ITestSmtpServerConnectionCollection.Add</code> /// </summary> /// <param name="connection_"></param> public void Add(IDummySmtpServerConnection connection_) { lock (_lock) { _connections.Add(connection_); _emptyEvent.Reset(); } }
/// <summary> /// See <code>ITestSmtpServerConnectionCollection.Remove</code> /// </summary> /// <param name="connection_"></param> public void Remove(IDummySmtpServerConnection connection_) { lock (_lock) { _connections.Remove(connection_); if (0 == _connections.Count) { _emptyEvent.Set(); } } }