Exemple #1
0
 public SingleThreadedStrategyImpl(MessagesReader reader) :
     base(reader.LogMedia, reader.StreamEncoding, CloneRegex(reader.formatInfo.HeadRe).Regex,
          reader.formatInfo.HeadRe.GetHeaderReSplitterFlags(), reader.formatInfo.TextStreamPositioningParams)
 {
     this.reader    = reader;
     this.callback  = reader.CreateMessageBuilderCallback();
     this.bodyRegex = reader.formatInfo.BodyRe.Regex;
 }
Exemple #2
0
            public override ProcessingThreadLocalData InitializeThreadLocalState()
            {
                ProcessingThreadLocalData ret = new ProcessingThreadLocalData();

                ret.bodyRe    = CloneRegex(reader.formatInfo.BodyRe);
                ret.callback  = reader.CreateMessageBuilderCallback();
                ret.bodyMatch = null;
                return(ret);
            }