public override bool Equals(object obj) { bool result = false; if (obj != null) { CameraPublishDestination other = obj as CameraPublishDestination; if (other != null && this.Id == other.Id) { result = true; } } return(result); }
public void KeepAlive(string cameraId, PublishDestination destination) { if (destination == null) throw new ArgumentNullException("destination"); CameraPublishDestination dest = new CameraPublishDestination(cameraId, destination); if (_timeToAlive.ContainsKey(dest)) { _timeToAlive[dest] = DateTime.Now; } }