public void TickleXTC() { OwaStoreObjectId owaStoreObjectId = base.GetParameter("sId") as OwaStoreObjectId; if (owaStoreObjectId == null) { throw new ArgumentException("sId is not a valid OwaStoreObjectId"); } MailboxSession mailboxSession = owaStoreObjectId.GetSession(base.UserContext) as MailboxSession; if (mailboxSession == null) { throw new OwaInvalidRequestException("The provided Id does not have a valid mailboxSession"); } if (!mailboxSession.IsRemote) { throw new OwaInvalidRequestException("The mailbox session for the provided Id is not a remote mailbox"); } mailboxSession.CheckForNotifications(); }