public Type CompileUserCodeToType(CompilationTargetFx targetFx, Func <string, string> assemblyLocationResolver)
 {
     using (MessagesReaderExtensions extensions = new MessagesReaderExtensions(null, fmtInfo.Value.ExtensionsInitData))
     {
         var fieldsProcessor = MessagesReader.CreateNewFieldsProcessor(this.fmtInfo.Value, extensions, tempFilesManager);
         var type            = fieldsProcessor.CompileUserCodeToType(targetFx, assemblyLocationResolver);
         return(type);
     }
 }
示例#2
0
 public SingleThreadedStrategyImpl(MessagesReader reader) : base(
         reader.LogMedia,
         reader.StreamEncoding,
         CloneRegex(reader.fmtInfo.HeadRe, reader.IsQuickFormatDetectionMode ? ReOptions.Timeboxed : ReOptions.None).Regex,
         reader.fmtInfo.HeadRe.GetHeaderReSplitterFlags(),
         reader.fmtInfo.TextStreamPositioningParams
         )
 {
     this.reader          = reader;
     this.fieldsProcessor = reader.CreateNewFieldsProcessor();
     this.callback        = reader.CreateMessageBuilderCallback();
     this.headerRegex     = headerRe;
     this.bodyRegex       = CloneRegex(reader.fmtInfo.BodyRe).Regex;
 }
示例#3
0
 public MultiThreadedStrategyImpl(MessagesReader reader) :
     base(reader.LogMedia, reader.StreamEncoding, reader.fmtInfo.HeadRe.Regex,
          reader.fmtInfo.HeadRe.GetHeaderReSplitterFlags(), reader.fmtInfo.TextStreamPositioningParams, reader.trace.Prefix, reader.traceSourceFactory)
 {
     this.reader = reader;
 }