コード例 #1
0
        public BAMPublisherInterceptor()
        {
            RestApiConf restApiConf = new RestApiConf();
            set_conf(restApiConf);
            dataPublisher = new DataPublisher(restApiConf);
            string streamDef =
                "{" +
                    "'name':'BAM_WCF_MESSAGE_TRACE'," +
                    "'version':'1.0.0'," +
                    "'nickName':'MessageTracerAgent'," +
                    "'correlationData':[" +
                        "{" +
                            "'name':'activity_id'," +
                            "'type':'STRING'" +
                        "}"+
                    "]," +
                    "'payloadData':[" +
                        "{" +
                            "'name':'message'," +
                            "'type':'STRING'" +
                        "}" +
                    "]" +
                "}";

            dataPublisher.defineStream(streamDef);
        }