Пример #1
0
        public static int GetEscalatedAssociationsCount(IAssociationAdaptor adaptor)
        {
            GetEscalatedAssociations         getEscalatedAssociations = new GetEscalatedAssociations(adaptor);
            IEnumerable <MailboxAssociation> source = getEscalatedAssociations.Execute(null);

            return(source.ToArray <MailboxAssociation>().Count <MailboxAssociation>());
        }
        private IEnumerable <UserMailbox> GetEscalatedMembersInternal(IAssociationStore storeProvider, GroupMailboxLocator group, bool loadAllDetails = false)
        {
            UserAssociationAdaptor           adaptor = new UserAssociationAdaptor(storeProvider, this.adSession, group);
            GetEscalatedAssociations         getEscalatedAssociations = new GetEscalatedAssociations(adaptor);
            IEnumerable <MailboxAssociation> associations             = getEscalatedAssociations.Execute(null);

            return(this.mailboxCollectionBuilder.BuildUserMailboxes(group, associations, loadAllDetails));
        }