C# Класс ServiceStack.WebHost.Endpoints.Extensions.HttpResponseExtensions

Показать файл Открыть проект

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

Метод Описание
WriteErrorToResponse ( this response, EndpointAttributes contentType, string operationName, string errorMessage, Exception ex ) : void
WriteErrorToResponse ( this response, string contentType, string operationName, string errorMessage, Exception ex ) : void
WriteTextToResponse ( this response, string text, string defaultContentType ) : void
WriteToOutputStream ( Stream responseStream, object result ) : bool
WriteToResponse ( this response, object result, StreamSerializerDelegate defaultAction, string defaultContentType ) : bool

Writes to response. Response headers are customizable by implementing IHasOptions an returning Dictionary of Http headers.

WriteToResponse ( this response, object result, string defaultContentType ) : bool

Writes to response.

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

Метод Описание
WriteJsonErrorToResponse ( this response, string operationName, string errorMessage, Exception ex ) : void
WriteJsvErrorToResponse ( this response, string operationName, string errorMessage, Exception ex ) : void
WriteXmlErrorToResponse ( this response, string operationName, string errorMessage, Exception ex ) : void

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

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

public static WriteErrorToResponse ( this response, EndpointAttributes contentType, string operationName, string errorMessage, Exception ex ) : void
response this
contentType EndpointAttributes
operationName string
errorMessage string
ex System.Exception
Результат void

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

public static WriteErrorToResponse ( this response, string contentType, string operationName, string errorMessage, Exception ex ) : void
response this
contentType string
operationName string
errorMessage string
ex System.Exception
Результат void

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

public static WriteTextToResponse ( this response, string text, string defaultContentType ) : void
response this
text string
defaultContentType string
Результат void

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

public static WriteToOutputStream ( Stream responseStream, object result ) : bool
responseStream Stream
result object
Результат bool

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

Writes to response. Response headers are customizable by implementing IHasOptions an returning Dictionary of Http headers.
public static WriteToResponse ( this response, object result, StreamSerializerDelegate defaultAction, string defaultContentType ) : bool
response this The response.
result object Whether or not it was implicity handled by ServiceStack's built-in handlers.
defaultAction StreamSerializerDelegate The default action.
defaultContentType string Default response ContentType.
Результат bool

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

Writes to response.
public static WriteToResponse ( this response, object result, string defaultContentType ) : bool
response this The response.
result object Whether or not it was implicity handled by ServiceStack's built-in handlers.
defaultContentType string Default response ContentType.
Результат bool