public void SendWriteBuffer()
 {
     try
     {
         WriteBuffer.Send(ActiveStream);
         //Trace.TraceInformation(DateTimeOffset.Now + " - " + Name + " " + WriteBuffer.GetDebugContent());
     }
     catch (Exception ex)
     {
         Trace.TraceError(DateTimeOffset.Now.ToString() + " - " + Name + " " + WriteBuffer.GetDebugContent() + ex.Message);
         // You must close or flush the trace to empty the output buffer.
         Trace.Flush();
     }
 }