Esempio n. 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);
 }
Esempio n. 3
0
 private static void ValidateParametersBeforeUse(string masterConnectionString, string updatesFolder)
 {
     _ = UpdateValidator.ValidateMasterConnectionString(masterConnectionString, throwOnInvalid: true);
     _ = UpdateValidator.ValidateUpdateFolderPath(updatesFolder, throwOnInvalid: true);
 }
Esempio n. 4
0
 private void ValidateBeforeRun()
 {
     _ = UpdateValidator.ValidateUpdateFolderPath(_updatesFolder, throwOnInvalid: true);
 }