ServiceStack.Client
Need to provide async request options
http://msdn.microsoft.com/en-us/library/86wf6409(VS.71).aspx
The request filter is called before any request.
This request filter is executed globally.
The response action is called once the server response is available.
It will allow you to access raw response information.
This response action is executed globally.
Note that you should NOT consume the response stream as this is handled by ServiceStack
Called before request resend, when the initial request required authentication
The request filter is called before any request.
This request filter only works with the instance where it was set (not global).
The response action is called once the server response is available.
It will allow you to access raw response information.
Note that you should NOT consume the response stream as this is handled by ServiceStack
Returns the next message from queueName or null if no message
Generic Proxy for service calls.
The service Contract
Returns the transparent proxy for the service call
Need to provide async request options
http://msdn.microsoft.com/en-us/library/86wf6409(VS.71).aspx
The request filter is called before any request.
This request filter is executed globally.
The response action is called once the server response is available.
It will allow you to access raw response information.
This response action is executed globally.
Note that you should NOT consume the response stream as this is handled by ServiceStack
Sets all baseUri properties, using the Format property for the SyncReplyBaseUri and AsyncOneWayBaseUri
Base URI of the service
Whether to Accept Gzip,Deflate Content-Encoding and to auto decompress responses
The user name for basic authentication
The password for basic authentication
Sets the username and the password for basic authentication.
Determines if the basic auth header should be sent with every request.
By default, the basic auth header is only sent when "401 Unauthorized" is returned.
Specifies if cookies should be stored
Called by Send method if an exception occurs, for instance a System.Net.WebException because the server
returned an HTTP error code. Override if you want to handle specific exceptions or always want to parse the
response to a custom ErrorResponse DTO type instead of ServiceStack's ErrorResponse class. In case ex is a
System.Net.WebException, do not use
createWebRequest/getResponse/HandleResponse<TResponse> to parse the response
because that will result in the same exception again. Use
ThrowWebServiceException<YourErrorResponseType> to parse the response and to throw a
WebServiceException containing the parsed DTO. Then override Send to handle that exception.
Gets the collection of headers to be added to outgoing requests.
Gets or sets authentication information for the request.
Warning: It's recommened to use and for basic auth.
This property is only used for IIS level authentication.
Called before request resend, when the initial request required authentication
The request filter is called before any request.
This request filter only works with the instance where it was set (not global).
The response action is called once the server response is available.
It will allow you to access raw response information.
Note that you should NOT consume the response stream as this is handled by ServiceStack
Track any IDisposable's to dispose of at the end of the request in IAppHost.OnEndRequest()
Gets a list of items for this request.
This list will be cleared on every request and is specific to the original thread that is handling the request.
If a handler uses additional threads, this data will not be available on those threads.
Creates the error response from the values provided.
If the errorCode is empty it will use the first validation error code,
if there is none it will throw an error.
The error code.
The error message.
The validation errors.
Default MaxStringContentLength is 8k, and throws an exception when reached
Serializer cache of delegates required to create a type from a string map (e.g. for REST urls)
Gets the namespace from an attribute marked on the type's definition
Namespace of type
Specifies if cookies should be stored
Compresses the specified text using the default compression method: Deflate
The text.
Type of the compression.
Decompresses the specified gz buffer using the default compression method: Inflate
The gz buffer.
Type of the compression.
Donated by Ivan Korneliuk from his post:
http://korneliuk.blogspot.com/2012/08/servicestack-reusing-dtos.html
Modified to only allow using routes matching the supplied HTTP Verb
Generate a url from a Request DTO. Pretty URL generation require Routes to be defined using `[Route]` on the Request DTO
The exception which is thrown when a validation error occurred.
This validation is serialized in a extra clean and human-readable way by ServiceStack.
Used if we need to serialize this exception to XML
Returns the first error code
The error code.
Encapsulates a validation result.
Constructs a new ValidationResult
Constructs a new ValidationResult
A list of validation results
Initializes a new instance of the class.
The errors.
The success code.
The error code.
Merge errors from another
Gets or sets the success code.
The success code.
Gets or sets the error code.
The error code.
Gets or sets the success message.
The success message.
Gets or sets the error message.
The error message.
The errors generated by the validation.
Returns True if the validation was successful (errors list is empty).
Adds the singleton instance of to an endpoint on the client.
Based on http://megakemp.wordpress.com/2009/02/06/managing-shared-cookies-in-wcf/
Adds the singleton of the class to the client endpoint's message inspectors.
The endpoint that is to be customized.
The client runtime to be customized.
Maintains a copy of the cookies contained in the incoming HTTP response received from any service
and appends it to all outgoing HTTP requests.
This class effectively allows to send any received HTTP cookies to different services,
reproducing the same functionality available in ASMX Web Services proxies with the class.
Based on http://megakemp.wordpress.com/2009/02/06/managing-shared-cookies-in-wcf/
Initializes a new instance of the class.
Inspects a message after a reply message is received but prior to passing it back to the client application.
The message to be transformed into types and handed back to the client application.
Correlation state data.
Inspects a message before a request message is sent to a service.
The message to be sent to the service.
The client object channel.
Null since no message correlation is used.
Gets the singleton instance.
Naming convention for the request's Response DTO