Exemplo n.º 1
0
 /// <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();
 }
Exemplo n.º 2
0
        /// <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();
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 /// <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);
 }