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)); }
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)); }
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); }