Exemple #1
0
 // Token: 0x06000D44 RID: 3396 RVA: 0x0003A540 File Offset: 0x00038740
 public SingleCopyReplayConfiguration(IADDatabaseAvailabilityGroup dag, IADDatabase database, IADServer server, LockType lockType)
 {
     try
     {
         if (database == null)
         {
             throw new NullDatabaseException();
         }
         if (server == null)
         {
             throw new ErrorNullServerFromDb(database.Name);
         }
         this.m_database             = database;
         this.m_type                 = ReplayConfigType.SingleCopySource;
         this.m_server               = server;
         this.m_sourceNodeFqdn       = server.Fqdn;
         this.m_replayState          = ReplayState.GetReplayState(this.m_sourceNodeFqdn, this.m_sourceNodeFqdn, lockType, this.Identity, this.Database.Name);
         this.m_activationPreference = 1;
         base.PopulatePropertiesFromDag(dag);
     }
     finally
     {
         this.BuildDebugString();
     }
 }
 // Token: 0x06000C45 RID: 3141 RVA: 0x000365B8 File Offset: 0x000347B8
 private RemoteReplayConfiguration(IADDatabaseAvailabilityGroup dag, IADDatabase database, IADServer server, string activeFqdn, LockType lockType, ReplayConfigType type)
 {
     try
     {
         if (database == null)
         {
             throw new NullDatabaseException();
         }
         if (server == null)
         {
             throw new ErrorNullServerFromDb(database.Name);
         }
         if (activeFqdn == null)
         {
             throw new ArgumentException("Caller must provide the active node");
         }
         IADDatabaseCopy databaseCopy = database.GetDatabaseCopy(server.Name);
         if (databaseCopy == null)
         {
             throw new NullDbCopyException();
         }
         this.m_server                = server;
         this.m_database              = database;
         this.m_targetNodeFqdn        = server.Fqdn;
         this.m_sourceNodeFqdn        = activeFqdn;
         this.m_type                  = type;
         this.m_autoDatabaseMountDial = this.m_server.AutoDatabaseMountDial;
         if (type == ReplayConfigType.RemoteCopyTarget)
         {
             this.m_replayState = ReplayState.GetReplayState(this.m_targetNodeFqdn, this.m_sourceNodeFqdn, lockType, this.Identity, this.Database.Name);
         }
         else
         {
             this.m_replayState = ReplayState.GetReplayState(this.m_sourceNodeFqdn, this.m_sourceNodeFqdn, lockType, this.Identity, this.Database.Name);
         }
         this.m_replayLagTime        = databaseCopy.ReplayLagTime;
         this.m_truncationLagTime    = databaseCopy.TruncationLagTime;
         this.m_activationPreference = databaseCopy.ActivationPreference;
         base.PopulatePropertiesFromDag(dag);
     }
     finally
     {
         this.BuildDebugString();
     }
 }