/// <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)); } }
/// <summary> /// See interface docs. /// </summary> /// <param name="streamManipulator"></param> public void RemoveStreamManipulator(IStreamManipulator streamManipulator) { _StreamManipulators.Remove(_StreamManipulators.FirstOrDefault(r => Object.Equals(r.StreamManipulator, streamManipulator))); }
/// <summary> /// Creates a new object. /// </summary> /// <param name="streamManipulator"></param> /// <param name="priority"></param> public RegisterStreamManipulator(IStreamManipulator streamManipulator, int priority) { StreamManipulator = streamManipulator; Priority = priority; }