예제 #1
0
 protected ContentMigrationController(ISitecoreAccessService sitecore, IScsRegistrationService registration, IContentMigrationManagerService migrationManager, IRemoteContentService remoteContent)
 {
     _sitecore         = sitecore;
     _registration     = registration;
     _migrationManager = migrationManager;
     _remoteContent    = remoteContent;
 }
예제 #2
0
 public ContentMigrationController()
 {
     _sitecore         = Bootstrap.Container.Resolve <ISitecoreAccessService>();
     _registration     = Bootstrap.Container.Resolve <IScsRegistrationService>();
     _migrationManager = Bootstrap.Container.Resolve <IContentMigrationManagerService>();
     _remoteContent    = Bootstrap.Container.Resolve <IRemoteContentService>();
 }
예제 #3
0
 public ContentMigrationController()
 {
     _sitecore                 = Bootstrap.Container.Resolve <ISitecoreDataAccessService>();
     _registration             = Bootstrap.Container.Resolve <IScsRegistrationService>();
     _migrationManager         = Bootstrap.Container.Resolve <IContentMigrationManagerService>();
     _remoteContent            = Bootstrap.Container.Resolve <IRemoteContentService>();
     _yamlSerializationService = Bootstrap.Container.Resolve <IYamlSerializationService>();
     _checksumManager          = Bootstrap.Container.Resolve <IChecksumManager>();
 }
예제 #4
0
 public ContentAgent(string remoteServer, string rootIds, string database, string bulkUpdate, string children, string overwrite, string eventDisabler, string pullParent, string removeLocalNotInRemote, IContentMigrationManagerService migrationManager)
 {
     _args = new PullItemModel()
     {
         Server                 = remoteServer,
         Ids                    = new List <string>(rootIds.Split(',')),
         Database               = database,
         BulkUpdate             = bulkUpdate.ToLower() == "true",
         Children               = children.ToLower() == "true",
         Overwrite              = overwrite.ToLower() == "true",
         EventDisabler          = eventDisabler.ToLower() == "true",
         PullParent             = pullParent.ToLower() == "true",
         RemoveLocalNotInRemote = removeLocalNotInRemote.ToLower() == "true",
         Preview                = false
     };
     _migrationManager = migrationManager;
 }
예제 #5
0
 public ContentAgent(string remoteServer, string rootIds, string database, string bulkUpdate, string children, string overwrite, string eventDisabler, string pullParent, string removeLocalNotInRemote, string ignoreRevId = "false", string useItemBlaster = "true")
 {
     _args = new PullItemModel()
     {
         Server                 = remoteServer,
         Ids                    = new List <string>(rootIds.Split(',')),
         Database               = database,
         BulkUpdate             = bulkUpdate.ToLower() == "true",
         Children               = children.ToLower() == "true",
         Overwrite              = overwrite.ToLower() == "true",
         EventDisabler          = eventDisabler.ToLower() == "true",
         PullParent             = pullParent.ToLower() == "true",
         RemoveLocalNotInRemote = removeLocalNotInRemote.ToLower() == "true",
         Preview                = false,
         IgnoreRevId            = ignoreRevId.ToLower() == "true",
         UseItemBlaster         = useItemBlaster.ToLower() == "true"
     };
     _migrationManager = Bootstrap.Container.Resolve <IContentMigrationManagerService>();
 }