public LineBasedFrameEncoder(LineDelimiter delimiter)
 {
     if (delimiter == null)
     {
         throw new ArgumentNullException("delimiter");
     }
     _delimiter = delimiter;
 }
 public LineBasedFrameBuilder(LineDelimiter delimiter)
     : this(new LineBasedFrameEncoder(delimiter), new LineBasedFrameDecoder(delimiter))
 {
 }