Esempio n. 1
0
 public void MessageExport(ISourceMailbox mailbox, List <MessageRec> messages, ExportMessagesFlags flags, PropTag[] excludeProps)
 {
     this.RunExportThread(delegate
     {
         using (BufferedTransmitter bufferedTransmitter = new BufferedTransmitter(this, this.service.ExportBufferSizeFromMrsKB, false, this.service.UseBufferring, this.service.UseCompression))
         {
             using (AsynchronousTransmitter asynchronousTransmitter = new AsynchronousTransmitter(bufferedTransmitter, false))
             {
                 using (FxProxyPoolTransmitter fxProxyPoolTransmitter = new FxProxyPoolTransmitter(asynchronousTransmitter, false, this.service.ClientVersion))
                 {
                     mailbox.ExportMessages(messages, fxProxyPoolTransmitter, flags, null, excludeProps);
                 }
             }
         }
     });
 }
Esempio n. 2
0
 public void FoldersExport(ISourceMailbox mailbox, List <byte[]> folderIds, ExportFoldersDataToCopyFlags exportFoldersDataToCopyFlags, GetFolderRecFlags folderRecFlags, PropTag[] additionalFolderRecProps, CopyPropertiesFlags copyPropertiesFlags, PropTag[] excludeProps, AclFlags extendedAclFlags)
 {
     this.RunExportThread(delegate
     {
         using (BufferedTransmitter bufferedTransmitter = new BufferedTransmitter(this, this.service.ExportBufferSizeFromMrsKB, false, this.service.UseBufferring, this.service.UseCompression))
         {
             using (AsynchronousTransmitter asynchronousTransmitter = new AsynchronousTransmitter(bufferedTransmitter, false))
             {
                 using (FxProxyPoolTransmitter fxProxyPoolTransmitter = new FxProxyPoolTransmitter(asynchronousTransmitter, false, this.service.ClientVersion))
                 {
                     mailbox.ExportFolders(folderIds, fxProxyPoolTransmitter, exportFoldersDataToCopyFlags, folderRecFlags, additionalFolderRecProps, copyPropertiesFlags, excludeProps, extendedAclFlags);
                 }
             }
         }
     });
 }
 public MessageWrapper(IDataMessage openMessage, FxProxyPoolTransmitter pool) : base(pool)
 {
     base.Pool.BufferOrSendMessage(openMessage);
 }
 public FolderWrapper(byte[] entryId, FxProxyPoolTransmitter pool) : base(pool)
 {
     this.entryId = entryId;
     base.Pool.BufferOrSendMessage(new FxProxyPoolOpenFolderMessage(entryId));
 }
 public FolderWrapper(FolderRec folderRec, FxProxyPoolTransmitter pool) : base(pool)
 {
     this.entryId = folderRec.EntryId;
     base.Pool.BufferOrSendMessage(new FxProxyPoolCreateFolderMessage(folderRec));
 }
 public EntryWrapper(FxProxyPoolTransmitter pool)
 {
     this.pool = pool;
     this.Pool.currentEntries.Push(this);
 }