Esempio n. 1
0
        private void RemoveConnection(ITrackingDisconnect connection)
        {
            // Remove the connection and associated metadata
            _connections.Remove(connection);
            DateTime removed;

            _connectionMetadata.TryRemove(connection, out removed);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void MarkConnection(ITrackingDisconnect connection)
 {
     // Mark this time this connection was used
     _connectionMetadata[connection] = DateTime.UtcNow;
 }
Esempio n. 4
0
 public void RemoveConnection(ITrackingDisconnect connection)
 {
     _connections.Remove(connection);
 }
Esempio n. 5
0
 public void AddConnection(ITrackingDisconnect connection)
 {
     _connections.Remove(connection);
     _connections.Add(connection);
 }