Пример #1
0
 protected override IConfigDataProvider CreateSession()
 {
     MigrationLogger.Initialize();
     MigrationLogContext.Current.Source       = "Set-MigrationEndpoint";
     MigrationLogContext.Current.Organization = base.CurrentOrganizationId.OrganizationalUnit;
     this.DataProvider = MigrationDataProvider.CreateProviderForMigrationMailbox(base.GetType().Name, base.TenantGlobalCatalogSession, this.partitionMailbox);
     return(MigrationEndpointDataProvider.CreateDataProvider("SetMigrationEndpoint", base.TenantGlobalCatalogSession, this.partitionMailbox));
 }
Пример #2
0
        protected override IConfigDataProvider CreateSession()
        {
            MigrationLogger.Initialize();
            MigrationLogContext.Current.Source = base.GetType().Name;
            if (base.CurrentOrganizationId != null)
            {
                MigrationLogContext.Current.Organization = base.CurrentOrganizationId.OrganizationalUnit;
            }
            this.initialized       = true;
            this.DataProvider      = MigrationDataProvider.CreateProviderForMigrationMailbox(base.GetType().Name, base.TenantGlobalCatalogSession, this.partitionMailbox);
            this.batchDataProvider = new Lazy <MigrationBatchDataProvider>(() => new MigrationBatchDataProvider(this.DataProvider, null));
            MigrationADProvider migrationADProvider = (MigrationADProvider)this.DataProvider.ADProvider;

            return(migrationADProvider.RecipientSession);
        }