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); } }
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; }
public MailboxSearchTask(ITargetMailbox targetMailbox, IExportHandler exportHandler, string executingUserPrimarySmtpAddress, OrganizationId orgId) : this(targetMailbox, exportHandler, executingUserPrimarySmtpAddress, orgId, false) { }
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) { }
public MailboxSearchTask(ITargetMailbox targetMailbox, ServerToServerCallingContextFactory callingContextFactory, string executingUserPrimarySmtpAddress, OrganizationId orgId) : this(targetMailbox, callingContextFactory, executingUserPrimarySmtpAddress, orgId, false) { }
public MailboxWriter(IExportContext exportContext, ITargetMailbox targetMailbox, IProgressController progressController) : this(exportContext, targetMailbox, progressController, null) { }