VMware Tanzu GemFire .NET Client API Reference

VMware Tanzu GemFire .NET Client: IJsonSerialCacheable Interface Reference
VMware Tanzu GemFire .NET Client
IJsonSerialCacheable Interface Reference

Inherit from this interface to allow a class instance to be cached to GemFire as serialized, queryable JSON. If a region's TValue is typed with a class implementing this interface, the default System.Text.Json deserializer will be used, i.e. System.Text.Json.JsonSerializer This allows for custom serialization and deserialization through System.Text.Json attributes (e.g. [JsonConverter], [JsonPropertyName]) More...

Inheritance diagram for IJsonSerialCacheable:
IJsonDocument

Public Member Functions

string ToJson ()
 toJson() returns the serialized object as a JSON string. Often, to implement, it is as simple as: public string toJson() => JsonSerializer.Serialize(this); More...
 

Detailed Description

Inherit from this interface to allow a class instance to be cached to GemFire as serialized, queryable JSON. If a region's TValue is typed with a class implementing this interface, the default System.Text.Json deserializer will be used, i.e. System.Text.Json.JsonSerializer This allows for custom serialization and deserialization through System.Text.Json attributes (e.g. [JsonConverter], [JsonPropertyName])

Member Function Documentation

◆ ToJson()

string IJsonSerialCacheable.ToJson ( )

toJson() returns the serialized object as a JSON string. Often, to implement, it is as simple as: public string toJson() => JsonSerializer.Serialize(this);

Returns

The documentation for this interface was generated from the following file:
  • gemfire.client/Interfaces/IJsonSerialCacheable.cs