Beispiel #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;
 }
Beispiel #2
0
 public MultiThreadedStrategyImpl(MessagesReader reader) :
     base(reader.LogMedia, reader.StreamEncoding, reader.formatInfo.HeadRe.Regex,
          reader.formatInfo.HeadRe.GetHeaderReSplitterFlags(), reader.formatInfo.TextStreamPositioningParams, null)
 {
     this.reader = reader;
 }