Exemplo n.º 1
0
        public IExchangeCalendarReader SetItemCompareStrategy(ExchangeCalendarItemCompareStrategy strategy)
        {
            this._compareStrategy = strategy;
            switch (strategy)
            {
            case ExchangeCalendarItemCompareStrategy.AcceptAll:
                this._appointmentSelectPredicate = AcceptAppointmentUnconditionally;
                break;

            case ExchangeCalendarItemCompareStrategy.Contains:
                this._appointmentSelectPredicate = AcceptAppointmentOnlyWhenSubjectContains;
                break;

            case ExchangeCalendarItemCompareStrategy.Equals:
                this._appointmentSelectPredicate = AcceptAppointmentOnlyWhenSubjectEquals;
                break;

            case ExchangeCalendarItemCompareStrategy.StartsWith:
                this._appointmentSelectPredicate = AcceptAppointmentOnlyWhenSubjectStartsWith;
                break;

            default:
                break;
            }

            return(this);
        }
 public IExchangeCalendarReader SetItemCompareStrategy(ExchangeCalendarItemCompareStrategy strategy)
 {
     return(this);
 }