Class ProgressableStreamContent
Provides HTTP content based on a stream with support for IProgress.
Inheritance
ProgressableStreamContent
Assembly: Artemis.UI.Shared.dll
Syntax
public class ProgressableStreamContent : StreamContent, IDisposable
Constructors
ProgressableStreamContent(Stream, IProgress<StreamProgress>)
Declaration
public ProgressableStreamContent(Stream streamToWrite, IProgress<StreamProgress> progress)
Parameters
ProgressableStreamContent(Stream, int, IProgress<StreamProgress>)
Declaration
public ProgressableStreamContent(Stream streamToWrite, int bufferSize, IProgress<StreamProgress> progress)
Parameters
Methods
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
bool |
disposing |
|
Overrides
SerializeToStreamAsync(Stream, TransportContext?)
Declaration
protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context)
Parameters
Returns
Overrides
SerializeToStreamAsync(Stream, TransportContext?, CancellationToken)
Declaration
protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken)
Parameters
Returns
Overrides
TryComputeLength(out long)
Declaration
protected override bool TryComputeLength(out long length)
Parameters
Type |
Name |
Description |
long |
length |
|
Returns
Overrides
Implements