Пример #1
0
        public UpdateConfiguration(IEnumerable <string> tenantConnectionStrings, string masterConnectionString, string updatesFolderRoot, IMapper mapper)
        {
            TenantConnectionStrings = tenantConnectionStrings;
            MasterConnectionString  = masterConnectionString;
            UpdatesFolderRoot       = updatesFolderRoot;
            Mapper = mapper;

            _ = UpdateValidator.ValidateUpdateСonfiguration(this);
        }
 private static void ValidateParametersBeforeUse(IEnumerable <string> tenantConnectionStrings, string updatesFolder)
 {
     _ = UpdateValidator.ValidateTenantConnectionString(tenantConnectionStrings, true);
     _ = UpdateValidator.ValidateUpdateFolderPath(updatesFolder, true);
 }
Пример #3
0
 private static void ValidateParametersBeforeUse(string masterConnectionString, string updatesFolder)
 {
     _ = UpdateValidator.ValidateMasterConnectionString(masterConnectionString, throwOnInvalid: true);
     _ = UpdateValidator.ValidateUpdateFolderPath(updatesFolder, throwOnInvalid: true);
 }
Пример #4
0
 private void ValidateBeforeRun()
 {
     _ = UpdateValidator.ValidateUpdateFolderPath(_updatesFolder, throwOnInvalid: true);
 }