Метод | Описание | |
---|---|---|
WriteErrorToResponse ( this response, EndpointAttributes contentType, string operationName, string errorMessage, |
||
WriteErrorToResponse ( this response, string contentType, string operationName, string errorMessage, |
||
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, |
||
WriteJsvErrorToResponse ( this response, string operationName, string errorMessage, |
||
WriteXmlErrorToResponse ( this response, string operationName, string errorMessage, |
public static WriteErrorToResponse ( this response, EndpointAttributes contentType, string operationName, string errorMessage, |
||
response | this | |
contentType | EndpointAttributes | |
operationName | string | |
errorMessage | string | |
ex | ||
Результат | void |
public static WriteErrorToResponse ( this response, string contentType, string operationName, string errorMessage, |
||
response | this | |
contentType | string | |
operationName | string | |
errorMessage | string | |
ex | ||
Результат | void |
public static WriteTextToResponse ( this response, string text, string defaultContentType ) : void | ||
response | this | |
text | string | |
defaultContentType | string | |
Результат | void |
public static WriteToOutputStream ( Stream responseStream, object result ) : bool | ||
responseStream | Stream | |
result | object | |
Результат | bool |
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 |
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 |