예제 #1
0
        /// <summary>
        /// See interface docs.
        /// </summary>
        /// <param name="streamManipulator"></param>
        /// <param name="priority"></param>
        public void AddStreamManipulator(IStreamManipulator streamManipulator, int priority)
        {
            if (streamManipulator == null)
            {
                throw new ArgumentNullException(nameof(streamManipulator));
            }

            if (!_StreamManipulators.Any(r => Object.ReferenceEquals(r.StreamManipulator, streamManipulator)))
            {
                _StreamManipulators.Add(new RegisterStreamManipulator(streamManipulator, priority));
            }
        }
예제 #2
0
 /// <summary>
 /// See interface docs.
 /// </summary>
 /// <param name="streamManipulator"></param>
 public void RemoveStreamManipulator(IStreamManipulator streamManipulator)
 {
     _StreamManipulators.Remove(_StreamManipulators.FirstOrDefault(r => Object.Equals(r.StreamManipulator, streamManipulator)));
 }
예제 #3
0
 /// <summary>
 /// Creates a new object.
 /// </summary>
 /// <param name="streamManipulator"></param>
 /// <param name="priority"></param>
 public RegisterStreamManipulator(IStreamManipulator streamManipulator, int priority)
 {
     StreamManipulator = streamManipulator;
     Priority          = priority;
 }