Esempio n. 1
0
        internal MimeWriter(Stream stream, string boundary)
        {
            if (stream == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("stream");
            if (boundary == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("boundary");

            this.stream = stream;
            this.boundaryBytes = MimeWriter.GetBoundaryBytes(boundary);
            this.state = MimeWriterState.Start;
            this.bufferedWrite = new BufferedWrite();
        }
 internal MimeWriter(Stream stream, string boundary)
 {
     if (stream == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("stream");
     }
     if (boundary == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("boundary");
     }
     this.stream = stream;
     this.boundaryBytes = GetBoundaryBytes(boundary);
     this.state = MimeWriterState.Start;
     this.bufferedWrite = new BufferedWrite();
 }