コード例 #1
0
        private static IConversationClutterProcessor CreateInternal(IStoreSession session)
        {
            IConversationClutterProcessor result = null;
            MailboxSession mailboxSession        = session as MailboxSession;

            if (mailboxSession != null && ClutterUtilities.IsClutterEnabled(mailboxSession, mailboxSession.MailboxOwner.GetConfiguration()))
            {
                result = new FolderBasedConversationClutterProcessor(mailboxSession);
            }
            return(result);
        }
コード例 #2
0
 internal static void ReadFolderBasedClutterSettings(MailboxSession mailboxSession, VariantConfigurationSnapshot configurationSnapshot, OwaUserConfiguration userConfiguration)
 {
     userConfiguration.SegmentationSettings.PredictedActions = ClutterUtilities.IsClutterEnabled(mailboxSession, configurationSnapshot);
     userConfiguration.UserOptions.ShowInferenceUiElements   = ClutterUtilities.IsClassificationEnabled(mailboxSession, configurationSnapshot);
 }