Exemplo n.º 1
0
        public MigrationSessionBuilder(CmsInstance cmsInstance, bool isExport = true)
        {
            _isExport = isExport;
            if (_isExport)
            {
                _migrationSession = new ExportSession();
            }
            else
            {
                _migrationSession = new ImportSession();
            }

            _migrationSession.Instance = cmsInstance;
            _migrationSession.Log      = new List <LogEntry>();
            _migrationEngine           = new MigrationEngine(cmsInstance);
            _migrationSession.LogEntry("", "CMS Connection initalised and successfully authenticated. User: " + _migrationSession.Instance.Username, EventLogEntryType.Information);
        }