コード例 #1
0
        private MailboxAssociation GetAssociationByLocator(BaseAssociationAdaptor associationAdaptor)
        {
            IMailboxLocator mailboxLocator = this.groupMailboxAccessLayerFactory.CreateSlaveLocator(this.associationId);

            MailboxAssociationContext.Tracer.TraceDebug <string, IMailboxLocator>((long)this.GetHashCode(), "MailboxAssociationContext.GetAssociationByLocator [{0}]: Querying association with locator {1}", this.cmdletName, mailboxLocator);
            return(associationAdaptor.GetAssociation(mailboxLocator));
        }
コード例 #2
0
        private MailboxAssociation GetAssociationByItemId(BaseAssociationAdaptor associationAdaptor, string base64ItemId)
        {
            MailboxAssociationContext.Tracer.TraceDebug <string>((long)this.GetHashCode(), "MailboxAssociationContext.GetAssociationByItemId [{0}]: Querying association by item id parameter", this.cmdletName);
            StoreObjectId itemId  = StoreObjectId.Deserialize(base64ItemId);
            VersionedId   itemId2 = new VersionedId(itemId, new byte[0]);

            return(associationAdaptor.GetAssociation(itemId2));
        }
コード例 #3
0
        private MailboxAssociation GetAssociationByItemId(BaseAssociationAdaptor associationAdaptor, MailboxAssociation association)
        {
            MailboxAssociationContext.Tracer.TraceDebug <string>((long)this.GetHashCode(), "MailboxAssociationContext.GetAssociationByItemId [{0}]: Querying association by its item id", this.cmdletName);
            MailboxAssociationFromStore mailboxAssociationFromStore = association as MailboxAssociationFromStore;

            if (mailboxAssociationFromStore != null)
            {
                association = associationAdaptor.GetAssociation(mailboxAssociationFromStore.ItemId);
            }
            return(association);
        }