internal void AddMessage(DicomThread dicomThread, DicomProtocolMessage message) { lock(lockObject) { dicomThread.Messages.Add(message); globalMessages.Add(message); } }
public void Validate(DicomThread dicomThread, DicomProtocolMessage dicomProtocolMessage) { if (dicomProtocolMessage is DulMessage) { Validate(dicomThread, dicomProtocolMessage as DulMessage); } else { Validate(dicomThread, dicomProtocolMessage as DicomMessage); } }
/// <summary> /// Constructor with initialization. Shallow copy. /// </summary> /// <param name="arrayOfValues">values to copy.</param> public DicomProtocolMessageCollection(DicomProtocolMessage[] arrayOfValues) { if (arrayOfValues == null) { throw new ArgumentNullException(); } foreach (DicomProtocolMessage value in arrayOfValues) { this.Add(value); } }
/// <summary> /// Removes the first occurrence of a specific item from the IList. /// </summary> /// <param name="value">The item to remove from the <see cref="System.Collections.IList"/>.</param> public void Remove(DicomProtocolMessage value) { base.Remove(value); }
/// <summary> /// Inserts an item to the IList at the specified position. /// </summary> /// <param name="index">The zero-based index at which <c>value</c> should be inserted. </param> /// <param name="value">The item to insert into the <see cref="System.Collections.IList"/>.</param> public void Insert(int index, DicomProtocolMessage value) { base.Insert(index, value); }
/// <summary> /// Determines the index of a specific item in the <see cref="System.Collections.IList"/>. /// </summary> /// <param name="value">The item to locate in the <see cref="System.Collections.IList"/>.</param> /// <returns>The index of <c>value</c> if found in the list; otherwise, -1.</returns> public int IndexOf(DicomProtocolMessage value) { return(base.IndexOf(value)); }
/// <summary> /// Determines whether the <see cref="System.Collections.IList"/> contains a specific item. /// </summary> /// <param name="value">The item to locate in the <see cref="System.Collections.IList"/>.</param> /// <returns><see langword="true"/> if the item is found in the <see cref="System.Collections.IList"/>; otherwise, <see langword="false"/>.</returns> public bool Contains(DicomProtocolMessage value) { return(base.Contains(value)); }
// // - Methods - // /// <summary> /// Adds an item to the <see cref="System.Collections.IList"/>. /// </summary> /// <param name="value">The item to add to the <see cref="System.Collections.IList"/>. </param> /// <returns>The position into which the new element was inserted.</returns> public int Add(DicomProtocolMessage value) { return(base.Add(value)); }
/// <summary> /// Removes the first occurrence of a specific item from the IList. /// </summary> /// <param name="value">The item to remove from the <see cref="System.Collections.IList"/>.</param> public void Remove(DicomProtocolMessage value) { base.Remove(value); }
/// <summary> /// Inserts an item to the IList at the specified position. /// </summary> /// <param name="index">The zero-based index at which <c>value</c> should be inserted. </param> /// <param name="value">The item to insert into the <see cref="System.Collections.IList"/>.</param> public void Insert(int index, DicomProtocolMessage value) { base.Insert(index, value); }
/// <summary> /// Determines the index of a specific item in the <see cref="System.Collections.IList"/>. /// </summary> /// <param name="value">The item to locate in the <see cref="System.Collections.IList"/>.</param> /// <returns>The index of <c>value</c> if found in the list; otherwise, -1.</returns> public int IndexOf(DicomProtocolMessage value) { return base.IndexOf(value); }
/// <summary> /// Determines whether the <see cref="System.Collections.IList"/> contains a specific item. /// </summary> /// <param name="value">The item to locate in the <see cref="System.Collections.IList"/>.</param> /// <returns><see langword="true"/> if the item is found in the <see cref="System.Collections.IList"/>; otherwise, <see langword="false"/>.</returns> public bool Contains(DicomProtocolMessage value) { return base.Contains(value); }
// // - Methods - // /// <summary> /// Adds an item to the <see cref="System.Collections.IList"/>. /// </summary> /// <param name="value">The item to add to the <see cref="System.Collections.IList"/>. </param> /// <returns>The position into which the new element was inserted.</returns> public int Add(DicomProtocolMessage value) { return base.Add(value); }
public void Validate(DicomProtocolMessage dicomProtocolMessage) { this.validator.Validate(this, dicomProtocolMessage); }