Пример #1
0
 public MailboxWriter(IExportContext exportContext, ITargetMailbox targetMailbox, IProgressController progressController, TargetFolderProvider <string, BaseFolderType, ITargetMailbox> targetFolderProvider)
 {
     Util.ThrowIfNull(exportContext, "exportContext");
     Util.ThrowIfNull(targetMailbox, "targetMailbox");
     Util.ThrowIfNull(progressController, "progressController");
     this.includeDuplicates  = exportContext.ExportMetadata.IncludeDuplicates;
     this.targetMailbox      = targetMailbox;
     this.progressController = progressController;
     this.timer = new Stopwatch();
     this.targetFolderProvider = targetFolderProvider;
     if (this.targetFolderProvider == null)
     {
         this.targetFolderProvider = new MailboxTargetFolderProvider(exportContext, this.targetMailbox);
     }
 }
Пример #2
0
 public MailboxSearchTask(ITargetMailbox targetMailbox, IExportHandler exportHandler, string executingUserPrimarySmtpAddress, OrganizationId orgId, bool isDocIdHintFlightingEnabled)
 {
     Util.ThrowIfNull(targetMailbox, "targetMailbox");
     Util.ThrowIfNull(exportHandler, "exportHandler");
     this.isStatisticsOnlySearch = false;
     this.CurrentState           = SearchState.NotStarted;
     this.Errors        = new List <string>(1);
     this.TargetMailbox = targetMailbox;
     this.executingUserPrimarySmtpAddress      = executingUserPrimarySmtpAddress;
     exportHandler.IsDocIdHintFlightingEnabled = isDocIdHintFlightingEnabled;
     this.exportHandler = exportHandler;
     this.ExportContext = this.exportHandler.ExportContext;
     this.exportHandler.OnReportStatistics += this.ReportStatistics;
     this.previewMaxMailboxes = 0;
     this.orgId = orgId;
 }
Пример #3
0
 public MailboxSearchTask(ITargetMailbox targetMailbox, IExportHandler exportHandler, string executingUserPrimarySmtpAddress, OrganizationId orgId) : this(targetMailbox, exportHandler, executingUserPrimarySmtpAddress, orgId, false)
 {
 }
Пример #4
0
 public MailboxSearchTask(ITargetMailbox targetMailbox, ServerToServerCallingContextFactory callingContextFactory, string executingUserPrimarySmtpAddress, OrganizationId orgId, bool isDocIdHintFlightingEnabled) : this(targetMailbox, ExportHandlerFactory.CreateExportHandler(new MailboxSearchTask.MailboxSearchTracer(), targetMailbox, new ExchangeServiceClientFactory(callingContextFactory ?? new ServerToServerCallingContextFactory(null))), executingUserPrimarySmtpAddress, orgId, isDocIdHintFlightingEnabled)
 {
 }
Пример #5
0
 public MailboxSearchTask(ITargetMailbox targetMailbox, ServerToServerCallingContextFactory callingContextFactory, string executingUserPrimarySmtpAddress, OrganizationId orgId) : this(targetMailbox, callingContextFactory, executingUserPrimarySmtpAddress, orgId, false)
 {
 }
Пример #6
0
 public MailboxWriter(IExportContext exportContext, ITargetMailbox targetMailbox, IProgressController progressController) : this(exportContext, targetMailbox, progressController, null)
 {
 }