コード例 #1
0
 public FEventSink(string fileName)
 {
     stream         = new FileStream(fileName + ".log", FileMode.Create, FileAccess.Write, FileShare.Read);
     BeginDocument += p => StreamUtil.AddText(stream, "Begin Document: " + p);
     EndDocument   += p => StreamUtil.AddText(stream, "End Document: " + p);
     PrintMessage  += p => StreamUtil.AddText(stream, p);
 }