Class MediaResponse
Represents the response associated with retrieving attachment content from the Azure Cosmos DB service.
public sealed class MediaResponse : IMediaResponse
- Inheritance
-
MediaResponse
- Implements
- Inherited Members
- Extension Methods
Constructors
MediaResponse()
Constructor exposed for mocking purposes for the Azure Cosmos DB service.
public MediaResponse()
Properties
ActivityId
Gets or sets the Activity ID for the request in the Azure Cosmos DB service.
public string ActivityId { get; }
Property Value
- string
The Activity ID for the request.
ContentLength
Gets or sets the HTTP ContentLength header value in the Azure Cosmos DB service.
public long ContentLength { get; }
Property Value
- long
The HTTP ContentLength header value.
ContentType
Gets or sets the HTTP ContentType header value in the Azure Cosmos DB service.
public string ContentType { get; }
Property Value
- string
The HTTP ContentType header value.
CurrentMediaStorageUsageInMB
Gets the current attachment content (media) usage in megabytes from the Azure Cosmos DB service.
public long CurrentMediaStorageUsageInMB { get; }
Property Value
- long
The current attachment content (media) usage in megabytes.
Remarks
This value is retrieved from the gateway. The value is returned from cached information updated periodically and is not guaranteed to be real time.
MaxMediaStorageUsageInMB
Gets the attachment content (media) storage quota in megabytes from the Azure Cosmos DB service. Retrieved from gateway.
public long MaxMediaStorageUsageInMB { get; }
Property Value
- long
The attachment content (media) storage quota in megabytes.
Media
Gets or sets the attachment content stream in the Azure Cosmos DB service.
public Stream Media { get; }
Property Value
- Stream
The attachment content stream.
ResponseHeaders
Gets the headers associated with the response from the Azure Cosmos DB service.
public NameValueCollection ResponseHeaders { get; }
Property Value
- NameValueCollection
The headers associated with the response.
Slug
Gets or sets the HTTP slug header value in the Azure Cosmos DB service.
public string Slug { get; }
Property Value
- string
The HTTP slug header value.