VMware Tanzu GemFire .NET Client API Reference
Registry for custom serializable types, both PDXSerializable and DataSerializable. More...
Inherited by ITypeRegistryInternal.
Public Member Functions | |
| int | GetTypeId (Type type) |
| Method to extract numeric type id from Type More... | |
| void | RegisterPdxType (PdxTypeFactoryMethod creationMethod) |
| Register an instance factory method for a given type. This should be used when registering types that implement IPdxSerializable. More... | |
| void | RegisterType (TypeFactoryMethod creationMethod, int id) |
| Register an instance factory method for a given type. This should be used when registering types that implement ISerializable. More... | |
| object | CreateObject (string classname) |
| Method to construct a registered object, lookup via classname More... | |
| dynamic | GetPdxTypeFromId (int typeId) |
| Method to extract Pdx type from internal map using id More... | |
Properties | |
| IPdxSerializer | PdxSerializer [get, set] |
| Getter method for PdxSerializer More... | |
| IPdxTypeMapper | PdxTypeMapper [get, set] |
| Register an PdxTypeMapper to map the local types to pdx types More... | |
| bool | PdxReadSerialized [get, set] |
| Getter for property PdxReadSerialized More... | |
Detailed Description
Registry for custom serializable types, both PDXSerializable and DataSerializable.
Member Function Documentation
◆ CreateObject()
| object ITypeRegistry.CreateObject | ( | string | classname | ) |
Method to construct a registered object, lookup via classname
- Parameters
-
classname
- Returns
- instance of registered object
◆ GetPdxTypeFromId()
| dynamic ITypeRegistry.GetPdxTypeFromId | ( | int | typeId | ) |
Method to extract Pdx type from internal map using id
- Parameters
-
typeId
- Returns
- PdxType
◆ GetTypeId()
| int ITypeRegistry.GetTypeId | ( | Type | type | ) |
Method to extract numeric type id from Type
- Exceptions
-
GemFireUnregisteredTypeException When a type is unregistered i.e. user defined IDataSerializable
- Parameters
-
type
- Returns
◆ RegisterPdxType()
| void ITypeRegistry.RegisterPdxType | ( | PdxTypeFactoryMethod | creationMethod | ) |
Register an instance factory method for a given type. This should be used when registering types that implement IPdxSerializable.
- Parameters
-
creationMethod the creation function to register
- Exceptions
-
InvalidOperationException if duplicate type GemFireIllegalArgumentException if the method is null
◆ RegisterType()
| void ITypeRegistry.RegisterType | ( | TypeFactoryMethod | creationMethod, |
| int | id | ||
| ) |
Register an instance factory method for a given type. This should be used when registering types that implement ISerializable.
- Parameters
-
creationMethod the creation function to register id numeric id to be used with this type
- Exceptions
-
InvalidOperationException if duplicate type GemFireIllegalArgumentException if the method is null
Property Documentation
◆ PdxReadSerialized
|
getset |
Getter for property PdxReadSerialized
◆ PdxSerializer
|
getset |
Getter method for PdxSerializer
◆ PdxTypeMapper
|
getset |
Register an PdxTypeMapper to map the local types to pdx types
The documentation for this interface was generated from the following file:
- gemfire.client/Interfaces/ITypeRegistry.cs

