public void PrereadMessages() { OwaStoreObjectId owaStoreObjectId = (OwaStoreObjectId)base.GetParameter("fId"); MailboxSession mailboxSession = owaStoreObjectId.GetSession(base.UserContext) as MailboxSession; OwaStoreObjectId[] array = (OwaStoreObjectId[])base.GetParameter("Itms"); StoreId[] array2 = null; if (mailboxSession == null) { throw new OwaInvalidRequestException("Session type does not support preread."); } if (array.Length == 0) { throw new ArgumentNullException("itemIds cannot be empty"); } try { if (this.IsConversationView) { array2 = ConversationUtilities.GetPrereadItemIds(mailboxSession, array); } else { array2 = new StoreId[array.Length]; for (int i = 0; i < array.Length; i++) { array2[i] = Utilities.TryGetStoreId(array[i]); } } } catch (ArgumentNullException exception) { if (Globals.SendWatsonReports) { ExWatson.AddExtraData(this.GetExtraWatsonData(array)); ExWatson.SendReport(exception, ReportOptions.None, null); return; } } mailboxSession.PrereadMessages(array2); }