public MailboxSearchTask(IEwsClient ewsClient, string keywordStatisticsQuery, MultiValuedProperty <string> userKeywords, IRecipientSession recipientSession, IExportContext exportContext, string executingUserPrimarySmtpAddress, int previewMaxMailboxes, bool isPFSearchFlightingEnabled, MailboxDiscoverySearch searchObject, OrganizationId orgId) { Util.ThrowIfNull(ewsClient, "ewsClient"); Util.ThrowIfNull(exportContext, "exportContext"); this.isStatisticsOnlySearch = true; this.keywordStatisticsQuery = keywordStatisticsQuery; this.CurrentState = SearchState.NotStarted; this.Errors = new List <string>(1); this.executingUserPrimarySmtpAddress = executingUserPrimarySmtpAddress; this.ewsClient = ewsClient; this.ExportContext = exportContext; this.previewMaxMailboxes = previewMaxMailboxes; this.InitializeUserKeywordsMapping(keywordStatisticsQuery, userKeywords, recipientSession); this.isPFSearchFlightingEnabled = isPFSearchFlightingEnabled; this.searchObject = searchObject; this.orgId = orgId; }
public MailboxItemIdList(string targetPrimarySmtpAddress, string sourcePrimarySmtpAddress, string workingLocation, IEwsClient ewsClient, bool isUnsearchable) { Util.ThrowIfNullOrEmpty(targetPrimarySmtpAddress, "targetPrimarySmtpAddress"); Util.ThrowIfNullOrEmpty(workingLocation, "workingLocation"); Util.ThrowIfNull(ewsClient, "ewsClient"); this.targetPrimarySmtpAddress = targetPrimarySmtpAddress; this.sourcePrimarySmtpAddress = sourcePrimarySmtpAddress; this.workingLocation = workingLocation; this.ewsClient = ewsClient; this.memoryCache = new List <ItemId>(ConstantProvider.ItemIdListCacheSize); this.IsUnsearchable = isUnsearchable; }
public TargetMailbox(OrganizationId orgId, string primarySmtpAddress, string legacyDN, IEwsClient ewsClient, ITargetLocation targetLocation) { Util.ThrowIfNullOrEmpty(primarySmtpAddress, "primarySmtpAddress"); Util.ThrowIfNullOrEmpty(legacyDN, "legacyDN"); Util.ThrowIfNull(ewsClient, "ewsClient"); Util.ThrowIfNull(targetLocation, "targetLocation"); this.organizationId = orgId; this.ewsClient = ewsClient; this.targetLocation = targetLocation; this.Initialize(primarySmtpAddress, legacyDN, null); }
public TargetMailbox(OrganizationId orgId, string primarySmtpAddress, string legacyDN, IEwsClient ewsClient, IExportContext exportContext) { Util.ThrowIfNullOrEmpty(primarySmtpAddress, "primarySmtpAddress"); Util.ThrowIfNullOrEmpty(legacyDN, "legacyDN"); Util.ThrowIfNull(ewsClient, "ewsClient"); Util.ThrowIfNull(exportContext, "exportContext"); this.organizationId = orgId; this.ewsClient = ewsClient; this.targetLocation = exportContext.TargetLocation; this.Initialize(primarySmtpAddress, legacyDN, exportContext); }
public MailboxSearchTask(IEwsClient ewsClient, string keywordStatisticsQuery, MultiValuedProperty <string> userKeywords, IRecipientSession recipientSession, IExportContext exportContext, string executingUserPrimarySmtpAddress, int previewMaxMailboxes, OrganizationId orgId) : this(ewsClient, keywordStatisticsQuery, userKeywords, recipientSession, exportContext, executingUserPrimarySmtpAddress, previewMaxMailboxes, false, null, orgId) { }