Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpMultipart"/> class.
 /// </summary>
 /// <param name="requestStream">The request stream to parse.</param>
 /// <param name="boundary">The boundary marker to look for.</param>
 public HttpMultipart(Stream requestStream, string boundary)
 {
     this.requestStream          = requestStream;
     this.boundaryAsBytes        = GetBoundaryAsBytes(boundary, false);
     this.closingBoundaryAsBytes = GetBoundaryAsBytes(boundary, true);
     this.readBuffer             = new HttpMultipartBuffer(this.boundaryAsBytes, this.closingBoundaryAsBytes);
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpMultipart"/> class.
 /// </summary>
 /// <param name="requestStream">The request stream to parse.</param>
 /// <param name="boundary">The boundary marker to look for.</param>
 public HttpMultipart(Stream requestStream, string boundary)
 {
     this.requestStream = requestStream;
     this.boundaryAsBytes = GetBoundaryAsBytes(boundary, false);
     this.closingBoundaryAsBytes = GetBoundaryAsBytes(boundary, true);
     this.readBuffer = new HttpMultipartBuffer(this.boundaryAsBytes, this.closingBoundaryAsBytes);
 }