protected override bool TryComputeLength(out long length)
                {
                    Debug.Assert(PipelineContent != null);

                    return(PipelineContent.TryComputeLength(out length));
                }
 protected override async Task SerializeToStreamAsync(Stream stream, TransportContext context)
 {
     Debug.Assert(PipelineContent != null);
     await PipelineContent.WriteTo(stream, CancellationToken).ConfigureAwait(false);
 }
Ejemplo n.º 3
0
 public override void SetContent(PipelineContent content)
 => _requestContent = content;
Ejemplo n.º 4
0
 public override void SetContent(PipelineContent content)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 5
0
 protected override void Dispose(bool disposing)
 {
     PipelineContent?.Dispose();
     base.Dispose(disposing);
 }