Class AWSStreamContent
AWSStreamContent is a wrapper for StreamContent class in the System.Net.Http library.The wrapper has been added so as to remove System.Net.Http dependencies from the Services and migrate it to a Core level dependecy only. This avoids version clashes when a service and the Core depends on different versions of the System.Net.Http library. This is a Service level utility method
public class AWSStreamContent : IDisposable
- Inheritance
-
AWSStreamContent
- Implements
- Inherited Members
Constructors
AWSStreamContent(Stream)
Wrapper for StreamContent constructor for stream content
public AWSStreamContent(Stream content)
Parameters
content
Stream
AWSStreamContent(Stream, int)
Wrapper for StreamContent constructor for stream content and bufferSize
public AWSStreamContent(Stream content, int bufferSize)
Parameters
Methods
AddHttpContentHeader(string, string)
Wrapper to allow Services to add StreamContent Headers
public void AddHttpContentHeader(string name, string value)
Parameters
Dispose()
Wrapper for StreamContent Dispose.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
RemoveHttpContentHeader(string)
Wrapper to allow Services to remove StreamContent Headers
public bool RemoveHttpContentHeader(string name)
Parameters
name
string