• [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);
  • 相关阅读:
    最长回文子序列---DP
    最长回文子串(暴力破解)
    两数相加
    多数元素
    MPI集群搭建
    字符串截取子串(Java substring , indexOf)
    JDK和环境配置,eclipse安装与使用
    ubantu上面 NFS服务器安装
    Django中间件的应用
    Django的url路由系统简介
  • 原文地址:https://www.cnblogs.com/xuzhong/p/2764955.html
Copyright © 2020-2023  润新知