private void FailCheck(ConsistencyCheckResult result, CalendarInconsistencyFlag inconsistencyFlag, string propertyName, object expectedValue, object actualValue, ClientIntentFlags?inconsistencyIntent)
        {
            PropertyInconsistency propertyInconsistency = PropertyInconsistency.CreateInstance(RoleType.Attendee, inconsistencyFlag, propertyName, expectedValue, actualValue, base.Context);

            propertyInconsistency.Intent = inconsistencyIntent;
            this.FailCheck(result, propertyInconsistency);
        }
Пример #2
0
        protected override ConsistencyCheckResult DetectInconsistencies()
        {
            ConsistencyCheckResult consistencyCheckResult = ConsistencyCheckResult.CreateInstance(base.Type, base.Description);
            bool isCancelled  = base.Context.BaseItem.IsCancelled;
            bool isCancelled2 = base.Context.OppositeItem.IsCancelled;

            if (isCancelled != isCancelled2)
            {
                consistencyCheckResult.Status = CheckStatusType.Failed;
                consistencyCheckResult.AddInconsistency(base.Context, PropertyInconsistency.CreateInstance(base.Context.OppositeRole, CalendarInconsistencyFlag.Cancellation, "IsCancelled", isCancelled, isCancelled2, base.Context));
            }
            return(consistencyCheckResult);
        }
Пример #3
0
 private void FailCheck(ConsistencyCheckResult result, ExceptionInfo exceptionInfo, DifferencesBetweenBlobAndAttach difference)
 {
     result.Status = CheckStatusType.Failed;
     result.AddInconsistency(base.Context, PropertyInconsistency.CreateInstance(RoleType.Attendee, CalendarInconsistencyFlag.RecurringException, string.Format("Exc{0}", difference), exceptionInfo.OriginalStartTime, RecurrenceBlobsConsistentCheck.GetActualValueOfExceptionalProperty(exceptionInfo, difference), base.Context));
 }
Пример #4
0
 private void FailCheck(ConsistencyCheckResult result, string propertyName, object expectedValue, object actualValue)
 {
     result.Status = CheckStatusType.Failed;
     result.AddInconsistency(base.Context, PropertyInconsistency.CreateInstance(RoleType.Attendee, CalendarInconsistencyFlag.RecurrenceBlob, propertyName, expectedValue, actualValue, base.Context));
 }
Пример #5
0
 private void FailCheck(ConsistencyCheckResult result, string organizerValueToLog, string attendeeValueToLog)
 {
     result.Status = CheckStatusType.Failed;
     result.AddInconsistency(base.Context, PropertyInconsistency.CreateInstance(RoleType.Attendee, CalendarInconsistencyFlag.RecurringTimeZone, "TimeZone", organizerValueToLog, attendeeValueToLog, base.Context));
 }