Something about Distinguished Field

原创 2007年10月03日 12:42:00
 
Some facts with distinguished field that often confused me:
  • ·         What is a distinguished field?
Yes, it is light-weighted, it stored as xpath pointer compared to promoted property stored in message context. Yes, distinguished field is mainly used in orchestration compared to promoted properties could be used everywhere. However, distinguished field CAN be used in pipeline component as well. The namespace for it is GlobalProperties. DistinguishedFieldsNamespace (http://schemas.microsoft.com/BizTalk/2003/btsDistinguishedFields). As a reference, it could be set in pipeline component like followed code
m_msgCtx.Write(base.XPath, Globals.DistinguishedFieldsNamespace, str);
  • ·         How did its value been produced?
There is no magic of this, all BizTalk built in pipelines (except pass-through) implement a way to automatically promote the distinguished field while pipeline execution. Take XML disassemble for example, in its Disassemble method, it invokes XmlDasmReader to loop through all distinguished fields and promote them
IDictionaryEnumerator distinguishedPropertyAnnotationEnumerator = docSpecType.GetDistinguishedPropertyAnnotationEnumerator();
  • ·         What the above behavior means?
It means if you write your own disassemble pipeline component and does not deliberately promote the distinguished field by
propertyBag.Write(distField.XPath, Globals.DistinguishedFieldsNamespace,
distFieldNode.InnerText);
If you do not do this, you won’t be able to use the distinguished field in orchestration!
·         Performance wise, which is better? Promoted property or distinguished field.
Distinguished field takes the lead. Since it is rather light-weighted and much less overhead.
 

相关文章推荐

something about tinyos

  • 2014年05月16日 22:49
  • 795KB
  • 下载

something about UNCTAD

  • 2012年10月22日 20:03
  • 678KB
  • 下载

something about Educational Codeforces Round 11

这场CF的E、F两题最近才补,拿来说说。比较有意思的是,官方题解给的都不是最优复杂度。。E. Different Subsets For All Tuples  这道题肯定是dp,我的做法是这样的。假...

Something about machine learning

  • 2013年06月12日 07:27
  • 4.47MB
  • 下载

Something About Nginx

  • 2013年02月16日 23:57
  • 13.26MB
  • 下载

Something about Compile error

A strange compile error! error :expected unqualified-id before ‘using’ It occurs When a class is d...

something about javaScript

  • 2013年09月25日 23:35
  • 1.7MB
  • 下载

something about jquery

  • 2013年09月25日 23:06
  • 8.91MB
  • 下载

something about me

每当谈起自己的故事呢,经常会自以为曲折动人,坎坷万千,但并不想提及自己的故事,仅想谈谈自己的现在。 我是正在努力成为一名合格程序猿的人,对,现在看来,仅仅只祈求着合格,其实在报志愿的时候,我最钟爱的...

Something about Moblin 2.0

  • 2008年12月21日 19:39
  • 5KB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Something about Distinguished Field
举报原因:
原因补充:

(最多只允许输入30个字)