Откройте файл ...SAMMigration\unity.config от имени администратора в текстовом редакторе (например, в Блокнот) и заполните секцию container:
- Все строки до <register type="ISAMDbContext". . . /> должны совпадать с теми, что указаны в файле конфигурации Консоли управления Рутокен KeyBox (icm\unity.config).
Добавлять секции, которых по умолчанию нет в unity.config утилиты миграции (но есть в icm\unity.config) не нужно.
- register type="IMigrateReporter" mapTo="IndeedCM.Migrate.SAM.Reporter.CSVMigrateReporter, IndeedCM.Migrate.SAM"/> – определяет режим вывода отчета по работе утилиты миграции.
Если секция не закомментирована символами <! - - . . . - ->, то отчет будет записываться в csv-файл, созданный в папке расположения утилиты с именем IndeedCM.Migrate.SAM.Report_dd-MM-yyyy_HH-mm-ss.csv. По умолчанию отчет не будет создаваться.
- <register type="IMigrateReporter" mapTo="IndeedCM.Migrate.SAM.Reporter.NullMigrateReporter, IndeedCM.Migrate.SAM"/> – отключает создание отчета о работе утилиты миграции данных. По умолчанию секция закомментирована символами <! - - . . . - ->.
Использование двух активных секций с параметрами IndeedCM.Migrate.SAM.Reporter.CSVMigrateReporter, IndeedCM.Migrate.SAM и IndeedCM.Migrate.SAM.Reporter.NullMigrateReporter, IndeedCM.Migrate.SAM не допускается. Одна из них обязательно должна быть закомментирована или удалена. |
Сохраните внесенные изменения.
Пример заполненных секций файла unity.config:
В примере RutokenKeyBox развернут с использованием хранилища данных и каталога пользователей в Active Directory, разрешено создание отчета о работе утилиты миграции в csv-файле. |
< container >
< register type = "ICardRepository" mapTo = "IndeedCM.Persistence.AD.CardRepository, IndeedCM.Persistence.AD" />
< register type = "IUserDataRepository" mapTo = "IndeedCM.Persistence.AD.UserDataRepository, IndeedCM.Persistence.AD" />
< register type = "IPolicyRepository" mapTo = "IndeedCM.Persistence.AD.PolicyRepository, IndeedCM.Persistence.AD" />
< register type = "ICardTypeRepository" mapTo = "IndeedCM.Persistence.AD.CardTypeRepository, IndeedCM.Persistence.AD" />
< register type = "ILicenseRepository" mapTo = "IndeedCM.Persistence.AD.LicenseRepository, IndeedCM.Persistence.AD" />
< register type = "ISkziRepository" mapTo = "IndeedCM.Persistence.AD.SkziRepository, IndeedCM.Persistence.AD" />
< register type = "IUserCatalog" mapTo = "IndeedCM.UserCatalog.AD.UserCatalog, IndeedCM.UserCatalog.AD" />
< register type = "ISAMDbContext" mapTo = "IndeedCM.Migrate.SAM_8_0.Core.SAMDbContext, IndeedCM.Migrate.SAM_8_0" />
< register type = "ISAMHelpers" mapTo = "IndeedCM.Migrate.SAM_8_0.Utils.SAMHelpers, IndeedCM.Migrate.SAM_8_0" />
< register type = "IMigrateReporter" mapTo = "IndeedCM.Migrate.SAM.Reporter.CSVMigrateReporter, IndeedCM.Migrate.SAM" />
</ container >
|