Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="report"></param>
 public override void VisitReport(ReportObject report)
 {
     using (EventStreamWriter writer = new EventStreamWriter())
     {
         writer.Write(new EventElement
         {
             Time   = report.Date,
             Source = this.streamName,
             Data   = report.ConvertToXml()
         });
     }
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="report"></param>
 public override async void VisitReport(ReportObject report)
 {
     await writer.QueueEventForWriting(new Event { Time = report.Date, Source = this.streamName, Data = report.ConvertToXml() });
 }