ServiceStack.Common 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. 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. 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). Default MaxStringContentLength is 8k, and throws an exception when reached Provide the an option for the callee to block until all commands are executed Encapsulates creating a new message handler These extensions have a potential to conflict with the LINQ extensions methods so leaving the implmentation in the 'Extensions' sub-namespace to force explicit opt-in 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 Sets all baseUri properties allowing for a temporary override of the Format property Base URI of the service Override of the Format property for the service Sets the username and the password for basic authentication. Specifies if cookies should be stored Whether to Accept Gzip,Deflate Content-Encoding and to auto decompress responses The user name for basic authentication The password for basic authentication 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. 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. 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 Generic Proxy for service calls. The service Contract Returns the transparent proxy for the service call Processes all messages in a Normal and Priority Queue. Expects to be called in 1 thread. i.e. Non Thread-Safe. Single threaded message handler that can process all messages of a particular message type. Process all messages pending Process messages from a single queue. The queue to process A predicate on whether to continue processing the next message if any Get Current Stats for this Message Handler The type of the message this handler processes Useful IPAddressExtensions from: http://blogs.msdn.com/knom/archive/2008/12/31/ip-address-calculations-with-c-subnetmasks-networks.aspx Gets the ipv4 addresses from all Network Interfaces that have Subnet masks. Gets the ipv6 addresses from all Network Interfaces. Executes the specified action. The action. Gets the current context (or null if none). Checks if the current context is set to "initialize only". Determines whether this context is initialise only or not Constructs a new InitialiseOnlyContext Call to remove this current context and reveal the previous context (if any). Gets or sets the object that has been initialized only. The exception which is thrown when a validation error occured. 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. Naming convention for the request's Response DTO Specifies if cookies should be stored Processing client used to interface with ServiceStack and allow a message to be processed. Not an actual client. Publish the specified message into the durable queue @queueName Publish the specified message into the transient queue @queueName Synchronous blocking get. Non blocking get message Blocking wait for notifications on any of the supplied channels Base rcon class. Rcon connection socket. Always set to null when not connected. Unique ID for each message. Registered callbacks. Create a new instance of rcon. Endpoint to connect to, usually the game server with query port. Attempts to connect to the game server for rcon operations. True if connection established, false otherwise. Processes a received packet. The packet. Disconnects from rcon. Sends message to the server. Words to send. Disconnected event. Game server endpoint. Last exception that occured during operation. Connected? Gets the next unique ID to be used for transmisson. Read this before sending to pair responses to sent messages. Event delegate when disconnected from the server. Delegate for async callbacks. Exception thrown when attempting to send on a non-connected service client. Gets the textual description of the enum if it has one. e.g. enum UserColors { [Description("Bright Red")] BrightRed } UserColors.BrightRed.ToDescription(); Note: InMemoryLog keeps all logs in memory, so don't use it long running exceptions Returns a thread-safe InMemoryLog which you can use while *TESTING* to provide a detailed analysis of your logs. 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 Func to get the Strongly-typed field Required to cast the return ValueType to an object for caching Func to set the Strongly-typed field Required to cast the ValueType to an object for caching Required to cast the ValueType to an object for caching Populate an object with Example data. Populates the object with example data. Tracks how deeply nested we are Helper extensions for tuples Invokes the action provided and returns true if no excpetion was thrown. Otherwise logs the exception and returns false if an exception was thrown. The action. 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. Maps the path of a file in the context of a VS project the relative path the absolute path Assumes static content is two directories above the /bin/ directory, eg. in a unit test scenario the assembly would be in /bin/Debug/. Maps the path of a file in a self-hosted scenario the relative path the absolute path Assumes static content is copied to /bin/ folder with the assemblies Maps the path of a file in an Asp.Net hosted scenario the relative path the absolute path Assumes static content is in the parent folder of the /bin/ directory Gets the namespace from an attribute marked on the type's definition Namespace of type Hosting services via a binary-safe TCP-based protocol. Register DTOs and hanlders the MQ Host will process Get Total Current Stats for all Message Handlers Get a Stats dump Start the MQ Host. Stops the server and restarts if already started. Stop the MQ Host if not already stopped. Processes a received packet. The packet. Factory to create consumers and producers that work with this service Shortcut to get the ResponseDTO whether it's bare or inside a IHttpResult Alias of ToDto Shortcut to get the ResponseDTO whether it's bare or inside a IHttpResult TResponse if found; otherwise null Alias of ToDto Shortcut to get the ResponseStatus whether it's bare or inside a IHttpResult Whether the response is an IHttpError or Exception True if the packet originated on the server. True if the packet is a response from a sent packet. Sequence identifier. Unique to the connection. Words. Serializer cache of delegates required to create a type from a string map (e.g. for REST urls) Contains methods required for encoding and decoding rcon packets. Decodes a packet. The packet. A packet object. Decodes the packet header. Decodes words in a packet. Encodes a packet for transmission to the server. Encodes a packet header. Encodes words. Func to get the Strongly-typed field Required to cast the return ValueType to an object for caching Func to set the Strongly-typed field Required to cast the ValueType to an object for caching Required to cast the ValueType to an object for caching Store an entry in the IHttpRequest.Items Dictionary Get an entry from the IHttpRequest.Items Dictionary Creates a Unified Resource Name (URN) with the following formats: - urn:{TypeName}:{IdFieldValue} e.g. urn:UserSession:1 - urn:{TypeName}:{IdFieldName}:{IdFieldValue} e.g. urn:UserSession:UserId:1 Common functionality when creating adapters Executes the specified expression. The action. Executes the specified action (for void methods). The action. 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