C# Класс Microsoft.Protocols.TestSuites.MS_WOPI.WOPIResponseHelper

A class is used to perform serializer operations for MS-WOPI protocol.
Наследование: HelperBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetBytesStringValue ( byte rawData ) : string

A method used to get byte string values from the response. 50 bytes per line.

GetContentFromResponse ( WOPIHttpResponse wopiHttpResponse ) : byte[]

A method is used to get raw body contents whose length is in 1 to int.MaxValue bytes scope.

ReadHTTPResponseBodyToString ( WOPIHttpResponse wopiHttpResponse ) : string

A method is used to read the HTTP response body and decode to string.

ReadRawHTTPResponseToBytes ( WOPIHttpResponse wopiHttpResponse ) : List

A method is used to read the HTTP response body to the bytes array.

Приватные методы

Метод Описание
ReadBytesFromHttpBodyStream ( Stream bodyBinaries, long contentLengthValue ) : List

A method used to read bytes data from the stream of the HTTP response.

WOPIResponseHelper ( ) : System

Prevents a default instance of the WOPIResponseHelper class from being created

Описание методов

GetBytesStringValue() публичный статический Метод

A method used to get byte string values from the response. 50 bytes per line.
public static GetBytesStringValue ( byte rawData ) : string
rawData byte A parameter represents a WOPI response instance which contains the response body.
Результат string

GetContentFromResponse() публичный статический Метод

A method is used to get raw body contents whose length is in 1 to int.MaxValue bytes scope.
public static GetContentFromResponse ( WOPIHttpResponse wopiHttpResponse ) : byte[]
wopiHttpResponse WOPIHttpResponse A parameter represents the HTTP response.
Результат byte[]

ReadHTTPResponseBodyToString() публичный статический Метод

A method is used to read the HTTP response body and decode to string.
public static ReadHTTPResponseBodyToString ( WOPIHttpResponse wopiHttpResponse ) : string
wopiHttpResponse WOPIHttpResponse A parameter represents the HTTP response.
Результат string

ReadRawHTTPResponseToBytes() публичный статический Метод

A method is used to read the HTTP response body to the bytes array.
public static ReadRawHTTPResponseToBytes ( WOPIHttpResponse wopiHttpResponse ) : List
wopiHttpResponse WOPIHttpResponse A parameter represents the HTTP response.
Результат List