Esempio n. 1
0
 public ContentMigration()
 {
     _remoteContent  = Bootstrap.Container.Resolve <IRemoteContentService>();
     _sitecoreAccess = Bootstrap.Container.Resolve <ISitecoreAccessService>();
     _registration   = Bootstrap.Container.Resolve <IScsRegistrationService>();
     _puller         = new ContentItemPuller();
     _installer      = new ContentItemInstaller();
 }
Esempio n. 2
0
 public ContentMigration(IContentItemPuller puller, IContentItemInstaller installer, IRemoteContentService remoteContent, ISitecoreAccessService sitecoreAccess, IScsRegistrationService registration)
 {
     _puller         = puller;
     _installer      = installer;
     _remoteContent  = remoteContent;
     _sitecoreAccess = sitecoreAccess;
     _registration   = registration;
 }
Esempio n. 3
0
 public void StartOperationFromPreview()
 {
     if (_model == null)
     {
         throw new ArgumentNullException("Cannot start an operation as a preview if it hasn't been started as a preview.");
     }
     _model.Preview = false;
     _puller        = new ContentItemPuller();
     _installer     = new ContentItemInstaller();
     StartContentMigration(_model);
 }