public string Format(Entities.DiagnosticEvent de, TypeDescriptorCollection typeDescriptorCollection) { var context = new TextTemplateProcessingContext(); foreach (var property in de.Properties) { var prop = property; context.Substitutions.AddOrUpdateSubstitution( property.UniqueName, (cx) => { return prop.Value; }); } var txt = TextTemplateProcessingServce.ProcessTemplate(Template, context); return txt.ExpandTabs(); }
public string Format(Entities.DiagnosticEvent de, TypeDescriptorCollection typeDescriptorCollection) { return de.VerbatimMessage; }
public StringObjectWriter() { TypeDescriptors = new TypeDescriptorCollection(); }