[BTS] Some code in BizTalk.Trace V1.0

Orchestration  Declare 
< om:Element  Type ="VariableDeclaration"  OID ="d19901e9-d218-4b24-8a28-da04c9187569"  ParentLink ="ServiceDeclaration_VariableDeclaration"  LowerBound ="17.1"  HigherBound ="18.1" >
     < om:Property  Name ="UseDefaultConstructor"  Value ="False" />
     < om:Property  Name ="Type"  Value ="System.String" />
     < om:Property  Name ="ParamDirection"  Value ="In" />
     < om:Property  Name ="ReportToAnalyst"  Value ="True" />
     < om:Property  Name ="Name"  Value ="logServiceId" />
     < om:Property  Name ="Signal"  Value ="True" />
</ om:Element >
< om:Element  Type ="VariableDeclaration"  OID ="0bc809ba-9e0e-4efc-bdfa-4866340bb0e4"  ParentLink ="ServiceDeclaration_VariableDeclaration"  LowerBound ="18.1"  HigherBound ="19.1" >
     < om:Property  Name ="UseDefaultConstructor"  Value ="False" />
     < om:Property  Name ="Type"  Value ="System.String" />
     < om:Property  Name ="ParamDirection"  Value ="In" />
     < om:Property  Name ="ReportToAnalyst"  Value ="True" />
     < om:Property  Name ="Name"  Value ="logServiceName" />
     < om:Property  Name ="Signal"  Value ="True" />
</ om:Element >
< om:Element  Type ="VariableDeclaration"  OID ="fe6718b5-87f5-47a9-a3d1-2501cea6fc0c"  ParentLink ="ServiceDeclaration_VariableDeclaration"  LowerBound ="19.1"  HigherBound ="20.1" >
     < om:Property  Name ="UseDefaultConstructor"  Value ="True" />
     < om:Property  Name ="Type"  Value ="System.String" />
     < om:Property  Name ="ParamDirection"  Value ="In" />
     < om:Property  Name ="ReportToAnalyst"  Value ="True" />
     < om:Property  Name ="Name"  Value ="logMessageId" />
     < om:Property  Name ="Signal"  Value ="True" />
</ om:Element >
< om:Element  Type ="VariableDeclaration"  OID ="ecc0e26e-0769-4dcd-93cb-2296cd1762ad"  ParentLink ="ServiceDeclaration_VariableDeclaration"  LowerBound ="20.1"  HigherBound ="21.1" >
     < om:Property  Name ="UseDefaultConstructor"  Value ="True" />
     < om:Property  Name ="Type"  Value ="System.String" />
     < om:Property  Name ="ParamDirection"  Value ="In" />
     < om:Property  Name ="ReportToAnalyst"  Value ="True" />
     < om:Property  Name ="Name"  Value ="logMessageName" />
     < om:Property  Name ="Signal"  Value ="True" />
</ om:Element >
< om:Element  Type ="VariableDeclaration"  OID ="62eb8264-85d3-4876-a652-4f10dacc86b0"  ParentLink ="ServiceDeclaration_VariableDeclaration"  LowerBound ="21.1"  HigherBound ="22.1" >
     < om:Property  Name ="UseDefaultConstructor"  Value ="False" />
     < om:Property  Name ="Type"  Value ="System.Int32" />
     < om:Property  Name ="ParamDirection"  Value ="In" />
     < om:Property  Name ="ReportToAnalyst"  Value ="True" />
     < om:Property  Name ="Name"  Value ="logIndex" />
     < om:Property  Name ="Signal"  Value ="True" />
</ om:Element >
< om:Element  Type ="VariableDeclaration"  OID ="49b88dbb-c537-4baf-b5e1-3672f0602778"  ParentLink ="ServiceDeclaration_VariableDeclaration"  LowerBound ="22.1"  HigherBound ="23.1" >
     < om:Property  Name ="UseDefaultConstructor"  Value ="True" />
     < om:Property  Name ="Type"  Value ="System.Xml.XmlDocument" />
     < om:Property  Name ="ParamDirection"  Value ="In" />
     < om:Property  Name ="ReportToAnalyst"  Value ="True" />
     < om:Property  Name ="Name"  Value ="logMessageXml" />
     < om:Property  Name ="Signal"  Value ="True" />
</ om:Element >
< om:Element  Type ="VariableDeclaration"  OID ="fc031594-d9c4-4f6d-925c-9378f46aa8ce"  ParentLink ="ServiceDeclaration_VariableDeclaration"  LowerBound ="23.1"  HigherBound ="24.1" >
     < om:Property  Name ="UseDefaultConstructor"  Value ="False" />
     < om:Property  Name ="Type"  Value ="System.DateTime" />
     < om:Property  Name ="ParamDirection"  Value ="In" />
     < om:Property  Name ="ReportToAnalyst"  Value ="True" />
     < om:Property  Name ="Name"  Value ="logStartTime" />
     < om:Property  Name ="Signal"  Value ="True" /> </ om:Element >  


 

Init Trace

logServiceName =  " Orchestration name |  Service name " ; 

logMessageId = "Optional";
logStartTime = System.DateTime.Now;
logIndex = 0;

 

Trace

logMessageName =  " msgFetch ";
logMessageXml = msgFetch;
MidSoft.BizTalk.Message.Save(logServiceName,logStartTime,logServiceId,logMessageId,logMessageName,logMessageXml,ref logIndex);

你可能感兴趣的:([BTS] Some code in BizTalk.Trace V1.0)