コード例 #1
0
        protected bool GetExchangeParticipantsFromRecipientInfo(RecipientInfo recipientInfo, List <Participant> exchangeParticipants)
        {
            bool        flag = false;
            Participant item = null;

            this.AnrOptions.ResolveContactsFirst = base.UserContext.UserOptions.CheckNameInContactsFirst;
            if (recipientInfo.PendingChunk != null)
            {
                RecipientCache recipientCache = AutoCompleteCache.TryGetCache(OwaContext.Current.UserContext);
                ArrayList      arrayList      = new ArrayList();
                RecipientWell.ResolveAndRenderChunk(this.Writer, recipientInfo.PendingChunk, arrayList, recipientCache, base.UserContext, this.AnrOptions);
                for (int i = 0; i < arrayList.Count; i++)
                {
                    RecipientWellNode recipientWellNode = (RecipientWellNode)arrayList[i];
                    flag |= Utilities.CreateExchangeParticipant(out item, recipientWellNode.DisplayName, recipientWellNode.RoutingAddress, recipientWellNode.RoutingType, recipientWellNode.AddressOrigin, recipientWellNode.StoreObjectId, recipientWellNode.EmailAddressIndex);
                    exchangeParticipants.Add(item);
                }
            }
            else
            {
                flag |= recipientInfo.ToParticipant(out item);
                exchangeParticipants.Add(item);
            }
            return(flag);
        }
コード例 #2
0
        private static EditCalendarItemHelper.CalendarItemUpdateFlags AddAttendees(IAttendeeCollection attendees, AttendeeType attendeeType, string wellName, UserContext userContext, HttpRequest request)
        {
            EditCalendarItemHelper.CalendarItemUpdateFlags calendarItemUpdateFlags = EditCalendarItemHelper.CalendarItemUpdateFlags.None;
            bool        flag          = false;
            Participant participant   = null;
            string      formParameter = Utilities.GetFormParameter(request, wellName, false);

            if (string.IsNullOrEmpty(formParameter))
            {
                return(calendarItemUpdateFlags);
            }
            ArrayList arrayList = new ArrayList();

            RecipientWell.ResolveRecipients(formParameter, arrayList, userContext, userContext.UserOptions.CheckNameInContactsFirst);
            for (int i = 0; i < arrayList.Count; i++)
            {
                RecipientWellNode recipientWellNode = (RecipientWellNode)arrayList[i];
                flag |= Utilities.CreateExchangeParticipant(out participant, recipientWellNode.DisplayName, recipientWellNode.RoutingAddress, recipientWellNode.RoutingType, recipientWellNode.AddressOrigin, recipientWellNode.StoreObjectId, recipientWellNode.EmailAddressIndex);
                if (participant != null)
                {
                    attendees.Add(participant, attendeeType, null, null, false);
                    calendarItemUpdateFlags |= EditCalendarItemHelper.CalendarItemUpdateFlags.AttendeesChanged;
                }
            }
            if (flag)
            {
                calendarItemUpdateFlags |= EditCalendarItemHelper.CalendarItemUpdateFlags.HasUnresolvedAttendees;
            }
            return(calendarItemUpdateFlags);
        }
コード例 #3
0
        // Token: 0x06002F16 RID: 12054 RVA: 0x0010F73C File Offset: 0x0010D93C
        private void ResolveIndividualWell(string name, AnrManager.Options anrOptions)
        {
            string[] array = (string[])base.GetParameter(name);
            if (array == null)
            {
                return;
            }
            anrOptions.ResolveContactsFirst = base.UserContext.UserOptions.CheckNameInContactsFirst;
            if (name == "From")
            {
                anrOptions.ResolveOnlyFromAddressBook = true;
            }
            this.Writer.Write("<div id=\"{0}\">", name);
            RecipientCache recipientCache = AutoCompleteCache.TryGetCache(OwaContext.Current.UserContext);

            for (int i = 0; i < array.Length; i++)
            {
                RecipientWell.ResolveAndRenderChunk(this.Writer, array[i], null, recipientCache, base.UserContext, anrOptions);
            }
            this.Writer.Write("</div>");
        }