コード例 #1
0
 private void TranslatePropValue(PropValueData pvd)
 {
     if (PrincipalTranslator.IsParticipantEntryIdTag(pvd.PropTag))
     {
         string text = PrincipalTranslator.LegDNFromParticipantEntryId(pvd.Value as byte[]);
         if (text != null)
         {
             string text2 = this.targetMapper.LookupLegDnByExProxy(text);
             pvd.Value = PrincipalTranslator.ParticipanEntryIdFromLegDN(pvd.Value as byte[], text2);
             MrsTracer.Service.Debug("Translating '{0}' to '{1}'", new object[]
             {
                 text,
                 text2
             });
             return;
         }
     }
     else if (PrincipalTranslator.IsSearchKeyTag(pvd.PropTag))
     {
         string text = PrincipalTranslator.LegDNFromSearchKey(pvd.Value as byte[]);
         if (text != null)
         {
             string text3 = this.targetMapper.LookupLegDnByExProxy(text);
             pvd.Value = PrincipalTranslator.SearchKeyFromLegDN(text3);
             MrsTracer.Service.Debug("Translating '{0}' to '{1}'", new object[]
             {
                 text,
                 text3
             });
         }
     }
 }
コード例 #2
0
        private void EnumeratePropValue(PropValueData pvd)
        {
            string text = null;

            if (PrincipalTranslator.IsParticipantEntryIdTag(pvd.PropTag))
            {
                text = PrincipalTranslator.LegDNFromParticipantEntryId(pvd.Value as byte[]);
            }
            else if (PrincipalTranslator.IsSearchKeyTag(pvd.PropTag))
            {
                text = PrincipalTranslator.LegDNFromSearchKey(pvd.Value as byte[]);
            }
            if (!string.IsNullOrEmpty(text))
            {
                this.sourceMapper.AddLegDN(text);
            }
        }