Beispiel #1
0
 /// <summary>
 /// Construct a Bulk instance and allocate the command array
 /// </summary>
 /// <param name="parent">
 /// The owner of the allocated commands.
 /// </param>
 /// <param name="command">
 /// An IMAP command name like FETCH or SEARCH.
 /// </param>
 /// <param name="uidCommand">
 /// Value for the <see cref="ZIMapCommand.UidCommand"/> property.
 /// </param>
 /// <param name="size">
 /// The number of aggregated commands.
 /// </param>
 public Bulk(ZIMapFactory parent, string command, uint size, bool uidCommand)
 {
     this.parent = parent;
     commands = new ZIMapCommand.Generic[size];
     for(uint urun=0; urun < size; urun++)
     {   commands[urun] = parent.CreateByName(command);
         if(commands[urun] == null)      // aborting ...
         {   commands = null; return;
         }
         commands[urun].AutoDispose = false;
         commands[urun].UidCommand = uidCommand;
     }
 }