internal static void CheckDiscoveryEnabled(IRecipientSession recipientSession, Task.TaskErrorLoggingDelegate writeErrorDelegate) { if (!SearchUtils.DiscoveryEnabled(recipientSession)) { writeErrorDelegate(new TaskException(Strings.MailboxSearchDisabled), ErrorCategory.ResourceUnavailable, null); } }
public bool IsDiscoverySearchEnabled(IRecipientSession recipientSession) { return(SearchUtils.DiscoveryEnabled(recipientSession)); }