Beispiel #1
0
        protected override void InternalProcessRecord()
        {
            TaskLogger.LogEnter(new object[]
            {
                this.DataObject
            });
            TDataObject scratchPad = Activator.CreateInstance <TDataObject>();

            scratchPad.CopyChangesFrom(this.DataObject);
            base.InternalProcessRecord();
            TDataObject  dataObject   = this.DataObject;
            AmServerName amServerName = new AmServerName(dataObject.ServerName);
            TDataObject  dataObject2  = this.DataObject;

            SystemConfigurationTasksHelper.DoubleWrite <TDataObject>(dataObject2.Identity, scratchPad, amServerName.Fqdn, base.DomainController, new Task.TaskVerboseLoggingDelegate(base.WriteVerbose), new Task.TaskWarningLoggingDelegate(this.WriteWarning));
            Database database = this.DataObject;

            if (database.Servers != null && database.Servers.Length > 0)
            {
                foreach (ADObjectId adobjectId in database.Servers)
                {
                    DatabaseTasksHelper.RunConfigurationUpdaterRpcAsync(amServerName.Fqdn, database, ReplayConfigChangeHints.DbCopyAdded, new Task.TaskVerboseLoggingDelegate(base.WriteVerbose), new Task.TaskWarningLoggingDelegate(this.WriteWarning));
                }
            }
            TaskLogger.LogExit();
        }
        protected override void InternalProcessRecord()
        {
            TaskLogger.LogEnter(new object[]
            {
                this.DataObject
            });
            TDataObject scratchPad = Activator.CreateInstance <TDataObject>();

            scratchPad.CopyChangesFrom(this.DataObject);
            base.InternalProcessRecord();
            AmServerName amServerName = new AmServerName(this.OwnerServerName);
            TDataObject  dataObject   = this.DataObject;

            SystemConfigurationTasksHelper.DoubleWrite <TDataObject>(dataObject.Identity, scratchPad, amServerName.Fqdn, base.DomainController, new Task.TaskVerboseLoggingDelegate(base.WriteVerbose), new Task.TaskWarningLoggingDelegate(this.WriteWarning));
            TaskLogger.LogExit();
        }