RestRelationsModule Class |
Namespace: Packflow.Rest
public class RestRelationsModule : RestModule, IHttpModule
The RestRelationsModule type exposes the following members.
| Name | Description | |
|---|---|---|
| RestRelationsModule |
| Name | Description | |
|---|---|---|
| AddEtag |
Adds an ETag header to the response, based on the output.
(Inherited from RestModule.) | |
| CalculateMD5Hash |
Calculates an MD5 of a string.
(Inherited from RestModule.) | |
| DeserializeParamT |
Deserializes an object received in a request. Respects request parameters.
(Inherited from RestModule.) | |
| Dispose |
Disposes resources.
| |
| GetQueryStringValue |
Gets a request value from the query string.
altNames contains other parameter names to check if no value found in the first one.
(Inherited from RestModule.) | |
| GetSerializerSettings |
Gets the serializer settings for JsonConvert (NewtonSoft).
(Inherited from RestModule.) | |
| HandleEtag |
Checks the request ETag. If modified, throw a rest exception for code 304 (unmodified).
Else adds the new ETag in the response.
(Inherited from RestModule.) | |
| Init |
Initializes events.
| |
| RequestParam_CamelCase |
Gets a (request parameter) value indicating if the serialized JSON should follow camel case.
Default value: false.
Query string parameter name: "camelCase".
(Inherited from RestModule.) | |
| RequestParam_IgnoreNullValues |
Gets a (request parameter) value indicating if the serialized JSON should ignore null values.
Default value: true.
Query string parameter name: "ignoreNullValues".
(Inherited from RestModule.) | |
| RequestParam_PrettyJson |
Gets a (request parameter) value indicating if the JSON should be indented.
Default value: false.
Query string parameter name: "pretty".
(Inherited from RestModule.) | |
| SerializeResult |
Serializes an object (using JSON) to be returned in the response. Respects request parameters.
(Inherited from RestModule.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| AsT |
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.) | |
| EqualsAll |
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.) | |
| EqualsAny |
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.) | |
| GetString |
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.) | |
| IsGenericList | Overloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.) | |
| IsGenericList(Type) | Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.) | |
| Serialize | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
| Serialize(String) | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
| SerializeJson | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
| SerializeJson(ListType) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
| SerializeJson(DataContractJsonSerializerSettings) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |