Beispiel #1
0
 protected override void InternalBeginProcessing()
 {
     base.InternalBeginProcessing();
     RequestTaskHelper.ValidateItemLimits(this.BadItemLimit, this.LargeItemLimit, this.AcceptLargeDataLoss, new Task.TaskErrorLoggingDelegate(base.WriteError), new Task.TaskWarningLoggingDelegate(this.WriteWarning), base.ExecutingUserIdentity);
     if (this.BatchName != null && this.BatchName.Length > 255)
     {
         base.WriteError(new ParameterLengthExceededPermanentException("BatchName", 255), ErrorCategory.InvalidArgument, this.BatchName);
     }
 }
 protected override void InternalBeginProcessing()
 {
     base.InternalBeginProcessing();
     RequestTaskHelper.ValidateItemLimits(this.BadItemLimit, this.LargeItemLimit, this.AcceptLargeDataLoss, new Task.TaskErrorLoggingDelegate(base.WriteError), new Task.TaskWarningLoggingDelegate(this.WriteWarning), base.ExecutingUserIdentity);
     if (this.BatchName != null && this.BatchName.Length > 255)
     {
         base.WriteError(new ParameterLengthExceededPermanentException("BatchName", 255), ErrorCategory.InvalidArgument, this.BatchName);
     }
     if (this.TargetDatabase != null)
     {
         this.specifiedTargetMDB = this.LocateAndVerifyMdb(this.TargetDatabase, out this.newTargetServerVersion);
     }
     if (this.ArchiveTargetDatabase != null)
     {
         this.specifiedArchiveTargetMDB = this.LocateAndVerifyMdb(this.ArchiveTargetDatabase, out this.newArchiveTargetServerVersion);
     }
 }
Beispiel #3
0
 protected override void InternalBeginProcessing()
 {
     TaskLogger.LogEnter();
     try
     {
         ReportEntry reportEntry = new ReportEntry(MrsStrings.ReportRequestCreated(this.ExecutingUserIdentity));
         reportEntry.Connectivity = new ConnectivityRec(ServerKind.Cmdlet, VersionInformation.MRS);
         this.GeneralReportEntries.Insert(0, reportEntry);
         RequestTaskHelper.ValidateItemLimits(this.BadItemLimit, this.LargeItemLimit, this.AcceptLargeDataLoss, new Task.TaskErrorLoggingDelegate(base.WriteError), new Task.TaskWarningLoggingDelegate(this.WriteWarning), this.ExecutingUserIdentity);
         if (this.SuspendComment != null && !this.Suspend)
         {
             base.WriteError(new SuspendCommentWithoutSuspendPermanentException(), ErrorCategory.InvalidArgument, this.SuspendComment);
         }
         if (!string.IsNullOrEmpty(this.SuspendComment) && this.SuspendComment.Length > 4096)
         {
             base.WriteError(new ParameterLengthExceededPermanentException("SuspendComment", 4096), ErrorCategory.InvalidArgument, this.SuspendComment);
         }
         if (!string.IsNullOrEmpty(this.Name) && this.Name.Length > 255)
         {
             base.WriteError(new ParameterLengthExceededPermanentException("Name", 255), ErrorCategory.InvalidArgument, this.Name);
         }
         if (!string.IsNullOrEmpty(this.BatchName) && this.BatchName.Length > 255)
         {
             base.WriteError(new ParameterLengthExceededPermanentException("BatchName", 255), ErrorCategory.InvalidArgument, this.BatchName);
         }
         if (!string.IsNullOrEmpty(this.ContentFilter))
         {
             this.NormalizedContentFilter = this.NormalizeContentFilter();
         }
         this.ValidateFolderFilter();
         base.InternalBeginProcessing();
     }
     finally
     {
         TaskLogger.LogExit();
     }
 }