Click or drag to resize
IResponseDataSender Interface
Defines an object that writes data to the given context's response and handles multipart and range requests.

Namespace: CMS.AspNet.Platform.Routing
Assembly: CMS.AspNet.Platform (in CMS.AspNet.Platform.dll) Version: 13.0.131
Syntax
C#
public interface IResponseDataSender

The IResponseDataSender type exposes the following members.

Properties
  NameDescription
Public propertyAcceptRange
Indicates if resumable downloads should be supported for current file.
Public propertyAreRangesValid
Indicates whether ranges are valid. : ranges are valid or request is not range request : all other cases
Public propertyDataLength
Size of data.
Public propertyIsMultipart
Indicates whether it is multipart range request.
Public propertyIsRangeRequest
Indicates whether it is range request.
Public propertyLogCommunicationExceptions
Whether to log exception caused by communication problems (e.g. when remote host closes the connection). LogExceptions has to be set to .
Public propertyLogExceptions
Logs the exceptions caused by the process.
Public propertyRanges
2D Array in format {{START_RANGE,END_RANGE},{START_RANGE, END_RANGE}}.
Top
Methods
  NameDescription
Public methodWriteBytes
Streams the byte array to the response.
Public methodWriteFile
Streams the data file to the response.
Top
See Also