private void RemoveConnection(ITrackingDisconnect connection) { // Remove the connection and associated metadata _connections.Remove(connection); DateTime removed; _connectionMetadata.TryRemove(connection, out removed); }
public void AddConnection(ITrackingDisconnect connection) { // Remove and re-add the connection so we have the correct object reference _connections.Remove(connection); _connections.Add(connection); // Remove the metadata for new connections DateTime removed; _connectionMetadata.TryRemove(connection, out removed); }
public void MarkConnection(ITrackingDisconnect connection) { // Mark this time this connection was used _connectionMetadata[connection] = DateTime.UtcNow; }
public void RemoveConnection(ITrackingDisconnect connection) { _connections.Remove(connection); }
public void AddConnection(ITrackingDisconnect connection) { _connections.Remove(connection); _connections.Add(connection); }