Пример #1
0
        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);
        }
Пример #2
0
        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;
              }
        }