Exemple #1
0
 // Token: 0x0600012A RID: 298 RVA: 0x00007404 File Offset: 0x00005604
 public static void HandleEventInternal(MailboxSession session, StoreObject storeItem)
 {
     LicensingProcessor.Tracer.TraceDebug(0L, "{0}: Calling LicensingProcessor.HandleEventInternal", new object[]
     {
         TraceContext.Get()
     });
     LicensingProcessor.ProcessSentItemMessage(session, storeItem);
     LicensingProcessor.Tracer.TraceDebug(0L, "{0}: Done LicensingProcessor.HandleEventInternal", new object[]
     {
         TraceContext.Get()
     });
 }
Exemple #2
0
        // Token: 0x0600012C RID: 300 RVA: 0x000075AC File Offset: 0x000057AC
        private static void ProcessSentItemMessage(MailboxSession session, StoreObject storeItem)
        {
            MessageItem messageItem = storeItem as MessageItem;

            if (messageItem == null)
            {
                LicensingProcessor.Tracer.TraceError(0L, "{0}: HandleEventInternal: item is not MessageItem", new object[]
                {
                    TraceContext.Get()
                });
                return;
            }
            if (LicensingProcessor.ShouldLicenseMessage(messageItem) && session.MailboxOwner != null && LicensingProcessor.ShouldLicenseForOrganization(session.MailboxOwner.MailboxInfo.OrganizationId))
            {
                LicensingProcessor.Tracer.TraceDebug <object, VersionedId>(0L, "{0}: Licensing message.{1}", TraceContext.Get(), messageItem.Id);
                bool flag = false;
                try
                {
                    LicensingProcessor.LicenseMessage(session.MailboxOwner, messageItem);
                    flag = true;
                    LicensingProcessor.Tracer.TraceDebug(0L, "{0}: End Licensing message.", new object[]
                    {
                        TraceContext.Get()
                    });
                }
                catch (ObjectNotFoundException)
                {
                }
                finally
                {
                    if (!flag)
                    {
                        LicensingProcessor.Tracer.TraceError(0L, "{0}: LicensingProcessor: SentItems: Failed to license message.", new object[]
                        {
                            TraceContext.Get()
                        });
                    }
                }
            }
        }
        // Token: 0x060000FF RID: 255 RVA: 0x00005C38 File Offset: 0x00003E38
        protected override void HandleEventInternal(MapiEvent mapiEvent, MailboxSession session, StoreObject item, List <KeyValuePair <string, object> > customDataToLog)
        {
            CachedState cachedState = AssistantsService.CachedObjectsList.GetCachedState(mapiEvent.MailboxGuid);
            MailboxData mailboxData = (MailboxData)cachedState.State[3];

            if (mailboxData == null)
            {
                mailboxData = new MailboxData(session);
                Interlocked.Exchange(ref cachedState.State[3], mailboxData);
            }
            if (BodyTagProcessor.IsEventInteresting(mapiEvent))
            {
                BodyTagProcessor.HandleEventInternal(session, item);
                return;
            }
            if (ActionsProcessor.IsEventInteresting(mapiEvent))
            {
                ActionsProcessor.HandleEventInternal(mapiEvent, session, item, mailboxData);
                Interlocked.Exchange(ref cachedState.State[3], mailboxData);
                return;
            }
            if (SentItemsProcessor.IsEventInteresting(mapiEvent, mailboxData))
            {
                SentItemsProcessor.HandleEventInternal(mapiEvent, session, item, mailboxData);
                Interlocked.Exchange(ref cachedState.State[3], mailboxData);
                return;
            }
            if (LicensingProcessor.IsEventInteresting(mapiEvent, mailboxData))
            {
                LicensingProcessor.HandleEventInternal(session, item);
                return;
            }
            if (InferenceProcessor.IsEventInteresting(mapiEvent, mailboxData))
            {
                InferenceProcessor.HandleEventInternal(mapiEvent, session, item, mailboxData, customDataToLog);
            }
        }
        // Token: 0x060000FE RID: 254 RVA: 0x00005BE0 File Offset: 0x00003DE0
        public bool IsEventInteresting(MapiEvent mapiEvent)
        {
            CachedState cachedState = AssistantsService.CachedObjectsList.GetCachedState(mapiEvent.MailboxGuid);
            MailboxData mailboxData = (MailboxData)cachedState.State[3];

            return(BodyTagProcessor.IsEventInteresting(mapiEvent) || ActionsProcessor.IsEventInteresting(mapiEvent) || SentItemsProcessor.IsEventInteresting(mapiEvent, mailboxData) || LicensingProcessor.IsEventInteresting(mapiEvent, mailboxData) || InferenceProcessor.IsEventInteresting(mapiEvent, mailboxData));
        }
Exemple #5
0
 // Token: 0x06000129 RID: 297 RVA: 0x000073FB File Offset: 0x000055FB
 public static bool IsEventInteresting(MapiEvent mapiEvent, MailboxData mailboxData)
 {
     return(LicensingProcessor.IsMessageCreatedInSentItems(mapiEvent, mailboxData));
 }