internal static StoreObjectId GetObjectIdProperty(IAnchorStoreObject item, StorePropertyDefinition propertyDefinition, bool required) { Exception innerException = null; try { byte[] property = AnchorHelper.GetProperty <byte[]>(item, propertyDefinition, required); if (property == null) { return(null); } return(MigrationHelperBase.GetStoreObjectId(property)); } catch (CorruptDataException ex) { innerException = ex; } throw new InvalidDataException(AnchorHelper.GetPropertyErrorMessage(propertyDefinition, null), innerException); }
// Token: 0x06000046 RID: 70 RVA: 0x0000298D File Offset: 0x00000B8D private void DoAdCallAndTranslateExceptions(ADOperation call, bool expectObject) { MigrationHelperBase.DoAdCallAndTranslateExceptions(call, expectObject, this.DebugInfo); }
// Token: 0x06000045 RID: 69 RVA: 0x0000295A File Offset: 0x00000B5A private T GetRecipient <T>(IRecipientSession session, QueryFilter filter) where T : class { return(MigrationHelperBase.GetRecipient <T>(session, filter, (string msg) => new AnchorMailboxNotFoundException(), (string msg) => new MultipleAnchorMailboxesFoundException(), (string msg) => new AnchorMailboxNotFoundException(), this.DebugInfo)); }
internal static ExDateTime?GetExDateTimePropertyOrNull(IAnchorStoreObject item, StorePropertyDefinition propertyDefinition) { object property = AnchorHelper.GetProperty <object>(item, propertyDefinition, false); return(MigrationHelperBase.GetValidExDateTime(property as ExDateTime?)); }
protected override IConfigDataProvider CreateSession() { base.CurrentOrganizationId = this.ResolveCurrentOrganization(); this.partitionMailbox = MigrationObjectTaskBase <MigrationConfigIdParameter> .ResolvePartitionMailbox(this.Partition, base.TenantGlobalCatalogSession, base.ServerSettings, new DataAccessHelper.CategorizedGetDataObjectDelegate(base.GetDataObject <ADUser>), new Task.ErrorLoggerDelegate(base.WriteError), base.CurrentOrganizationId == OrganizationId.ForestWideOrgId && MapiTaskHelper.IsDatacenter); TenantPartitionHint partitionHint = TenantPartitionHint.FromOrganizationId(base.CurrentOrganizationId); MigrationLogger.Initialize(); MigrationLogContext.Current.Source = "Set-MigrationConfig"; MigrationLogContext.Current.Organization = base.CurrentOrganizationId.OrganizationalUnit; return(MigrationSessionDataProvider.CreateDataProvider("SetMigrationConfig", MigrationHelperBase.CreateRecipientSession(partitionHint), this.partitionMailbox)); }