ServiceStack.Common
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.
Need to provide async request options
http://msdn.microsoft.com/en-us/library/86wf6409(VS.71).aspx
Sets the username and the password for basic authentication.
Specifies if cookies should be stored
The request filter is called before any request.
This request filter is executed globally.
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.
The request filter is called before any request.
This request filter only works with the instance where it was set (not global).
Encapsulates creating a new message handler
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.
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
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.
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.
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
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).
Populate an object with Example data.
Populates the object with example data.
Tracks how deeply nested we are
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
Get Current Stats for this Message Handler
The type of the message this handler processes
Gets the textual description of the enum if it has one. e.g.
enum UserColors
{
[Description("Bright Red")]
BrightRed
}
UserColors.BrightRed.ToDescription();
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.
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
Default MaxStringContentLength is 8k, and throws an exception when reached
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
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.
Serializer cache of delegates required to create a type from a string map (e.g. for REST urls)
Provide the an option for the callee to block until all commands are executed
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.
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