/// <summary> /// This is the reset method to set the content. /// </summary> public override void Reset() { mBody = null; mHeaderCollectionAlreadyBuilt = false; if (mHeaderCollection != null) mHeaderCollection.Clear(); base.Reset(); }
/// <summary> /// This is the reset method to set the content. /// </summary> public override void Reset() { mFragmentReadPointer = 0; mFragmentReadCurrent = null; ReturnPoolableChildObjects(); if (mMessageParts != null) mMessageParts.Clear(); else mMessageParts = new Dictionary<int, IXimuraMessage>(); base.Reset(); }
public virtual void HeaderAdd(IXimuraMessage fragment) { if (!Initializing) throw new MessageException("The HeaderAdd instruction can only be called when the message is initializing."); FragmentAddInternal(fragment); }
/// <summary> /// This method adds the fragment to the internal collection. /// </summary> /// <param name="fragment">The fragment to add to the collection.</param> protected virtual void FragmentAddInternal(IXimuraMessage fragment) { mMessageParts.Add(mMessageParts.Count, fragment); }