Exemplo n.º 1
0
 public TraceFormatter(bool saveTrace)
 {
     if (saveTrace)
     {
         this.traceStream = TemporaryStorage.Create();
         this.traceWriter = new StreamWriter(this.traceStream);
     }
 }
Exemplo n.º 2
0
 protected override void MessageWriteToMime(StorageFxProxyPool.MessageEntry entry, byte[] buffer)
 {
     if (entry.MimeStream == null)
     {
         entry.MimeStream = TemporaryStorage.Create();
     }
     entry.MimeStream.Write(buffer, 0, buffer.Length);
 }