// Token: 0x0600064F RID: 1615 RVA: 0x0001F4FF File Offset: 0x0001D6FF
 public AmBcsContext(Guid dbGuid, AmServerName sourceServerName, IAmBcsErrorLogger errorLogger)
 {
     this.DatabaseGuid     = dbGuid;
     this.SourceServerName = sourceServerName;
     this.IsSourceServerAllowedForMount = false;
     this.ErrorLogger = errorLogger;
     this.StatusTable = new Dictionary <AmServerName, RpcDatabaseCopyStatus2>();
 }
Exemple #2
0
        private bool ValidateServer(AmServerName serverName, IADDatabase db, AmConfig amConfig, AmBcsServerChecks checksToRun, IAmBcsErrorLogger errorLogger)
        {
            if (serverName.IsLocalComputerName)
            {
                return(true);
            }
            LocalizedString       empty = LocalizedString.Empty;
            AmBcsServerValidation amBcsServerValidation = new AmBcsServerValidation(serverName, null, db, amConfig, errorLogger, null);
            bool flag = amBcsServerValidation.RunChecks(checksToRun, ref empty);

            if (!flag)
            {
                AmTrace.Error("AmMultiNodeRpcNotifier: DB {0}: ValidateServer() returned error: {1}", new object[]
                {
                    db.Name,
                    empty
                });
            }
            return(flag);
        }
Exemple #3
0
 // Token: 0x0600066D RID: 1645 RVA: 0x0001F678 File Offset: 0x0001D878
 public AmBcsCopyValidation(Guid dbGuid, string dbName, AmBcsChecks checksToRun, AmServerName sourceServer, AmServerName targetServer, RpcDatabaseCopyStatus2 copyStatus, IAmBcsErrorLogger errorLogger, AmBcsSkipFlags skipValidationChecks, ComponentStateWrapper csw)
 {
     this.DbGuid                = dbGuid;
     this.DbName                = dbName;
     this.ChecksToRun           = checksToRun;
     this.SourceServer          = sourceServer;
     this.TargetServer          = targetServer;
     this.CopyStatus            = copyStatus;
     this.ComponentStateWrapper = csw;
     this.ErrorLogger           = errorLogger;
     this.SkipValidationChecks  = skipValidationChecks;
     AmTrace.Debug("AmBcsCopyValidation: Constructed with SkipValidationChecks='{0}'", new object[]
     {
         skipValidationChecks
     });
 }
Exemple #4
0
 // Token: 0x0600066C RID: 1644 RVA: 0x0001F654 File Offset: 0x0001D854
 public AmBcsCopyValidation(Guid dbGuid, string dbName, AmBcsChecks checksToRun, AmServerName sourceServer, AmServerName targetServer, RpcDatabaseCopyStatus2 copyStatus, IAmBcsErrorLogger errorLogger, AmBcsSkipFlags skipValidationChecks) : this(dbGuid, dbName, checksToRun, sourceServer, targetServer, copyStatus, errorLogger, skipValidationChecks, null)
 {
 }
Exemple #5
0
 // Token: 0x060006C2 RID: 1730 RVA: 0x000208BA File Offset: 0x0001EABA
 public AmBcsServerValidation(AmServerName serverToCheck, AmServerName sourceServer, IADDatabase database, AmConfig amConfig, IAmBcsErrorLogger errorLogger, IMonitoringADConfig dagConfig)
 {
     this.ServerToCheck = serverToCheck;
     this.SourceServer  = sourceServer;
     this.Database      = database;
     this.AmConfig      = amConfig;
     this.ErrorLogger   = errorLogger;
     this.DagConfig     = dagConfig;
 }