Пример #1
0
        internal static IFormatParser CreateWcfFormatParserFromString(bool clientTrace, bool serviceTrace, params string[] segments)
        {
            IFormatParser formatParser = new WcfParser();

            formatParser.Setup(BuildFile(string.Concat(segments)), "in memory", clientTrace, serviceTrace);
            return(formatParser);
        }
Пример #2
0
        internal static Parser CreateWcfParserFromFile(string fileName, bool clientTrace, bool serviceTrace, SoapActionMode soapActionMode, params string[] soapActions)
        {
            Parser ans;

            LastTraceFileOpened = Parser.OpenTraceFile(fileName);
            IFormatParser formatParser = new WcfParser();

            formatParser.Setup(LastTraceFileOpened, fileName, clientTrace, serviceTrace);

            ans = new Parser(formatParser, soapActionMode, soapActions);

            return(ans);
        }