public ContentMigration() { _remoteContent = Bootstrap.Container.Resolve <IRemoteContentService>(); _sitecoreAccess = Bootstrap.Container.Resolve <ISitecoreAccessService>(); _registration = Bootstrap.Container.Resolve <IScsRegistrationService>(); _puller = new ContentItemPuller(); _installer = new ContentItemInstaller(); }
public ContentMigration(IContentItemPuller puller, IContentItemInstaller installer, IRemoteContentService remoteContent, ISitecoreAccessService sitecoreAccess, IScsRegistrationService registration) { _puller = puller; _installer = installer; _remoteContent = remoteContent; _sitecoreAccess = sitecoreAccess; _registration = registration; }
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); }