Registering Generic Classes using Generic Type Handler
NCache also gives you the facility to configure all required generic classes at once using Generic Type Handler. For this, first of all, you have to implement IGenericTypeProvider interface. Write the code for all the required combinations for all data types that can be used in your application. This can be done as follows:
Using NCache Manager
-
Click on the cache name in Cache Explorer to open cache settings
-
Go to the Compact Serialization tab.
-
Click the Generic Type handler button.
class, for which you have implemented the IGenericTypeProvider interface.
down menu. Select the required generic type provider class from the drop down list.
See Also