This class provides access to the available protocols. More...
Static Public Member Functions | |
static bool | TryRegisterCustomType (Type customType, byte typeCode, Func< object, byte[]> serializeFunction, Func< byte[], object > deserializeFunction) |
Tries to register a custom type for serialisation. More... | |
static void | RegisterTypeMapper (IUnknownTypeMapper mapper) |
Properties | |
static bool | AllowRawCustomValues [get, set] |
Gets or sets a value indicating whether unknown customes types are allowed. if set to true unknown custom types will be serialized as an RawCustomValue instance. More... | |
static Dictionary< ProtocolType, IRpcProtocol > | Protocols [get] |
static IRpcProtocol | Amf3V162 [get] |
Gets the Amf3 protocol version 1.6 with header version 2. More... | |
static IRpcProtocol | GpBinaryV152 [get] |
Gets the GpBinary protocol version 1.5 with header version 2 More... | |
static IRpcProtocol | GpBinaryV162 [get] |
Gets the GpBinary protocol version 1.6 with header version 2 More... | |
static IRpcProtocol | GpBinaryV17 [get] |
Gets the GpBinary protocol version 1.7 More... | |
static IRpcProtocol | Json [get] |
Gets the Json protocol implementation. More... | |
This class provides access to the available protocols.
|
inlinestatic |
|
inlinestatic |
Tries to register a custom type for serialisation.
customType | Type of the custom type. |
typeCode | The type code. |
serializeFunction | The serialize function. |
deserializeFunction | The deserialize function. |
|
staticgetset |
Gets or sets a value indicating whether unknown customes types are allowed. if set to true unknown custom types will be serialized as an RawCustomValue instance.
true
if unknown custom types are allowed; otherwise, false
.
|
staticget |
Gets the Amf3 protocol version 1.6 with header version 2.
|
staticget |
Gets the GpBinary protocol version 1.5 with header version 2
|
staticget |
Gets the GpBinary protocol version 1.6 with header version 2
|
staticget |
Gets the GpBinary protocol version 1.7
|
staticget |
Gets the Json protocol implementation.
|
staticget |